openshift/awx.yaml¶
awx.yaml deploys a standalone AWX (Ansible automation controller) instance on OpenShift.
Unlike the other sample inventories under openshift/, this is not a Fabric-X network sample. AWX is a general automation controller, deployed independently through the awx role and its companion playbooks.
Warning
Supported only on CRC (CodeReady Containers). The AWX Operator installs cluster-scoped resources (CRDs, ClusterRoles, ClusterRoleBindings), which requires cluster-admin rights on the target cluster.
Topology¶
flowchart TD
all --> awx
awx --> awx-controller
Inventory Details¶
A single logical host, awx-controller, represents the AWX deployment:
awx_use_openshift: trueselects the OpenShift task path, which builds on the Kubernetes path and additionally publishes an OpenShift Route.awx_openshift_routeandawx_restore_openshift_routederive their hostnames fromopenshift_apps_domain, the same cluster ingress domain used by the other OpenShift samples (defaults toapps-crc.testingon CRC).awx_postgres_fix_pvc_permissions: trueandawx_postgres_security_context_settings.runAsUser: 26work around storage provisioners that don't apply correct PVC ownership on mount, which is common on CRC's default storage.awx_restore_name: awxrestores in place by default, reusing the same Route without a naming conflict.
Run the lifecycle playbooks directly against this inventory, for example:
See the playbooks/awx README for the full lifecycle (start, teardown, wipe, backup, restore) and how to retrieve the generated admin credentials.