mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
---
|
|
- name: Deploy an instance of AWX using the awx-operator
|
|
hosts: localhost
|
|
|
|
collections:
|
|
- kubernetes.core
|
|
|
|
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
|
|
service_type: "{{ service_type | default(omit) }}" # Either clusterIP, Loadbalancer or NodePort
|
|
ingress_type: "{{ ingress_type | default(omit) }}" # Either none, Ingress, Route
|
|
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
|