YMMV
- Install the operator. This process relies heavily on the Red Hat GitOps Catalog.
oc apply -k operator
- Install an instance of the Controller and Hub (optional)
oc apply -k instance
- Adam Pippert
"Hub acts as a content manager for Ansible. It connects to container repos for execution environments, controls access to content, and allows you to pull certified and validated content from Red Hat. Controller controls how individual playbooks are run against your execution environment and how they’re run."
- Christian Adams
"AAP Automation Hub is a central place to serve up content in a customer's org, such as ansible collections, container images (Execution Environments and Decision Environments), and ansible roles. The content served up by Automation Hub is then used by Controller. Hub is like an on prem version of https://galaxy.ansible.com/ui/ (with the addition of a container registry)"
- Namespace may be
aap
or it may beansible-automation-platform
- If your default storageclass is ceph-rbd you will have a problem, this patch fixes it install/instance/patch-automationcontroller.yaml
- You must update the URL in the console links. That is done here install/instance/patch-consolelink.yaml
- Obtain the login password for the Controller interface
oc extract secret/controller-admin-password -n ansible-automation-platform --to=-
# password
EXAMPLE
- Go get a trial license https://www.redhat.com/en/technologies/management/ansible/trial
- Once you have a sub visible in your subscription manager put RH password into Controller interface and it will download it automatically
- TBD :)
- Create a service account for Ansible to talk to OpenShift
oc apply -k configure/credentials/ocp
oc extract secret/aap2ocp-token -n ansible-automation-platform --keys=token --to=-
# token
eyJhbGc..EXAMPLE...
- Give that serviceaccount appropriate perms via rolebinding?
# todo rolebinding for virtualization
See https://kubevirt.io/2023/Managing-KubeVirt-VMs-with-Ansible.html
ansible-galaxy collection install kubevirt.core