Ansible roles for RHEL configuration.
To install this collection from GitHub with Ansible 2.10 and newer:
ansible-galaxy collection install git+https://github.com/myllynen/rhel-ansible-roles,master
To install this collection with Ansible 2.9:
git clone https://github.com/myllynen/rhel-ansible-roles.git
ansible-galaxy collection build rhel-ansible-roles
ansible-galaxy collection install myllynen-rhel_ansible_roles-$version.tar.gz
Depending on the environment and requirements separate playbooks and/or vars files, group vars, variables defined in an inventory, or some other approach might be appropriate for providing configuration variables for the roles.
See the READMEs of each role for descriptions of the parameters they support.
See the example playbook configure_rhel.yml how these roles could be used together. For additional roles to configure RHEL functionality (such as network and storage), see Red Hat provided RHEL system roles (available also as rhel-system-roles RPM on RHEL).
These roles have been tested and verified to work against RHEL 7/8/9 using Ansible 2.9 - 2.15. Certain roles only work with newer RHEL versions where the required functionality is not available on the earlier releases, such as fapolicyd_setup. READMEs of roles will list supported versions where needed, by default all roles support all supported RHEL versions.
The roles will gather the minimum set of facts as needed meaning that they can be used in setups where fact gathering is disabled.
NB. Recent versions of rhel-system-roles may include similar roles as are included in this repository. Depending on the use case and support needs it should be evaluated which one to prefer. If in doubt, use the supported versions.
See also https://github.com/myllynen/rhel-image.
See also https://github.com/myllynen/ansible-packer.
See also https://github.com/myllynen/windows-ansible-roles.
See also https://console.redhat.com/ansible/automation-hub/repo/published/redhat/rhel_system_roles.
GPLv3+