Collection for configuring Ubuntu repositories and Ubuntu OS related content in a Foreman/Katello installation.
The Ubuntu repositories that can be configured from this collection are:
-
Ubuntu 20.04 LTS (Focal Fossa)1:
- Focal Fossa
- Focal Fossa - Updates
- Focal Fossa - Backports
- Focal Fossa - Security Updates
-
Ubuntu 22.04 LTS (Jammy Jellyfish)1:
- Jammy Jellyfish
- Jammy Jellyfish - Updates
- Jammy Jellyfish - Backports
- Jammy Jellyfish - Security Updates
-
Ubuntu 24.04 LTS (Noble Numbat)1:
- Noble Numbat
- Noble Numbat - Updates
- Noble Numbat - Backports
- Noble Numbat - Security Updates
Ansible Core 2.13.0 or higher is required for the roles in the collection.
The roles in this collection must be imported by the kangaroot.foreman
collection. It is possible to directly use the roles in this collection but not recommended.
The kangaroot.foreman
collection requires the theforeman.foreman
and theforeman.operations
collections. To install the required collections, execute:
ansible-galaxy collection install -r requirements.yml
in the collection directory.
The group_vars directory contains example vars files for the important variables used in the collection roles.
The variable foreman_content_roles
from the foreman
role in the kangaroot.foreman
collection contains a list content roles to import.
Add this collection content role to the foreman_content_roles
list of content roles to import in your playbook project variables.
For example, add the foreman_content_roles
variable in your group_vars/foreman.yml
file of your playbook project:
# Foreman content roles to include
foreman_content_roles:
# Package only content
- ...
# OS content
- kangaroot.foreman_content_ubuntu.foreman_content_ubuntu
- ...
# Builtin content
- kangaroot.foreman_content_builtin.foreman_content_builtin
Also ensure that the Ubuntu repositories are enabled by setting the appropriate enable variables:
foreman_enable_ubuntu: true
foreman_enable_ubuntu2004: false
In your playbook, add a task to execute the kangaroot.foreman.foreman
role:
- name: Run kangaroot.foreman roles
hosts: foreman
roles:
- kangaroot.foreman.foreman