Examples how to automate the automation when using Ansible Automation Platform (AAP).
- aap_host_prepare.yml
- Example playbook to prepare RHEL 9 systems for AAP 2.5 installation
- ansible.cfg.install
- Enhanced ansible.cfg to use with the containerized installer
- inventory.lab
- Example containerized inventory to install AAP 2.5 in a small lab
- Can be easily adjusted for bundle and non-bundle installations
- examples
- Example playbooks and configuration for further AAP setup automation
To create the required AAP manifest, see Red Hat Subscription Allocations tool and obtaining a manifest file.
Before installing AAP on RHEL (not OCP) it is a good idea to ensure a known-good baseline configuration on the target hosts.
aap_host_prepare.yml is an example playbook that could be used for this. It should be adjusted for the local environment and it uses the https://github.com/myllynen/rhel-ansible-roles collection.
To install Ansible Automation Platform, download the preferred installer, obtain a manifest file, then unpack the installer, cd to the extracted directory, and adjust the inventory:
# Install supported ansible-core version and other tools
sudo dnf install --enablerepo=ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms \
ansible-core ansible-builder ansible-lint ansible-navigator ansible-sign
# Update the inventory for the local environment
vi inventory
# Run the AAP containerized installer
ansible-playbook -i inventory ansible.containerized_installer.install
See examples.
See also https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform.
See also https://console.redhat.com/ansible/automation-hub/namespaces/ansible.
See also https://console.redhat.com/ansible/automation-hub/namespaces/infra.
See also https://github.com/myllynen/aap-troubleshooting-guide.
See also https://console.redhat.com/ansible/automation-hub/repo/published/redhat/rhel_system_roles.
See also https://github.com/myllynen/rhel-ansible-roles.
See also https://github.com/myllynen/windows-ansible-roles.
See also https://github.com/redhat-cop.
GPLv3+