From 4a45333de0a7cb6546d53fd595e869ef89eaab50 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Sat, 3 Oct 2020 14:10:15 -0400 Subject: [PATCH] Add playbook for deploying an instance of AWX --- ansible/instantiate-awx-deployment.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ansible/instantiate-awx-deployment.yml diff --git a/ansible/instantiate-awx-deployment.yml b/ansible/instantiate-awx-deployment.yml new file mode 100644 index 00000000..c68e3138 --- /dev/null +++ b/ansible/instantiate-awx-deployment.yml @@ -0,0 +1,26 @@ +--- +- name: Deploy an instance of AWX using the awx-operator + hosts: localhost + + collections: + - community.kubernetes + + tasks: + - name: Deploy AWX + k8s: + state: "{{ state | default('present') }}" + namespace: awx + apply: yes + wait: yes + definition: + apiVersion: awx.ansible.com/v1beta1 + kind: AWX + metadata: + name: awx + spec: + deployment_type: awx + tower_admin_user: test + tower_admin_email: test@example.com + tower_admin_password: changeme + tower_broadcast_websocket_secret: changeme + tower_ingress_type: Route