Files
awx-operator/ansible/instantiate-awx-deployment.yml
2021-05-25 09:52:13 +02:00

31 lines
1000 B
YAML

---
- 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: "{{ namespace | default('default') }}"
apply: yes
wait: yes
definition:
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: awx
spec:
admin_user: admin
admin_email: admin@localhost
ingress_type: "{{ ingress_type | default(omit) }}" # Either Route, Ingress or LoadBalancer
image: "{{ image | default(omit) }}"
image_version: "{{ image_version | default(omit) }}"
development_mode: "{{ development_mode | default(omit) | bool }}"
image_pull_policy: "{{ image_pull_policy | default(omit) }}"
# ee_images:
# - name: test-ee
# image: quay.io/<user>/awx-ee