Getting started with Ansible AWX 18 on OpenShift CRC
Introduction
Ansible AWX is the upstream open source project for Red Hat Ansible Tower. As it is upstream of Ansible Tower, it lacks the enterprise support that comes with Red Ansible Automation Platform but it a great alternative if you wish to explore some of the bleeding edge functionality that is likely to make its way down stream into Ansible Tower.
OpenShift is an enterprise ready Kubernetes distribution designed to run anywhere. Due to the large resource requirements for a full blown OpenShift cluster, OpenShift CRC is a great alternative if you wish to have a local dev instance of OpenShift.
Create an OpenShift Project and K8s namespace
oc new-project awx
Deploying the AWX Operator
oc apply -f https://raw.githubusercontent.com/ansible/awx-operator/0.10.0/deploy/awx-operator.yaml
Deploy an instance of AWX
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: awx-demo
spec:
service_type: nodeport
ingress_type: none
hostname: awx-demo.example.com
---
apiVersion: route.openshift.io/v1
kind: Route
spec:
host: awx-demo-service-awx.apps-crc.testing
port:
targetPort: http
to:
kind: Service
name: awx-demo-service
weight: 100
wildcardPolicy: None