mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 05:43:11 +00:00
28 lines
728 B
YAML
28 lines
728 B
YAML
---
|
|
|
|
- name: Combine spec_overrides with spec
|
|
set_fact:
|
|
spec: "{{ spec | default({}) | combine(spec_overrides) }}"
|
|
no_log: "{{ no_log }}"
|
|
|
|
- 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
|