Files
awx-operator/roles/restore/tasks/deploy_awx.yml

23 lines
586 B
YAML

---
- name: Deploy AWX
k8s:
state: "{{ state | default('present') }}"
namespace: "{{ ansible_operator_meta.namespace }}"
apply: yes
definition: "{{ lookup('template', 'awx_object.yml.j2') }}"
wait: true
wait_condition:
type: "Running"
status: "True"
- name: Remove ownerReferences to prevent garbage collection of new AWX CRO
k8s:
definition:
apiVersion: '{{ api_version }}'
kind: AWX
metadata:
name: '{{ deployment_name }}'
namespace: '{{ ansible_operator_meta.namespace }}'
ownerReferences: null