mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-06 13:22:50 +00:00
Work around bug in k8s module with the "template" attribute
This commit is contained in:
@@ -8,4 +8,4 @@
|
||||
k8s:
|
||||
kind: Event
|
||||
namespace: "{{ ansible_operator_meta.namespace }}"
|
||||
template: "event.yml.j2"
|
||||
definition: "{{ lookup('template', 'event.yml.j2') }}"
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
- name: Create PVC for backup
|
||||
k8s:
|
||||
kind: PersistentVolumeClaim
|
||||
template: "backup_pvc.yml.j2"
|
||||
definition: "{{ lookup('template', 'backup_pvc.yml.j2') }}"
|
||||
|
||||
- name: Remove PVC ownerReference
|
||||
k8s:
|
||||
@@ -68,7 +68,7 @@
|
||||
name: "{{ ansible_operator_meta.name }}-db-management"
|
||||
kind: Deployment
|
||||
state: present
|
||||
template: "management-pod.yml.j2"
|
||||
definition: "{{ lookup('template', 'management-pod.yml.j2') }}"
|
||||
wait: true
|
||||
|
||||
- name: Look up details for this deployment
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
k8s:
|
||||
kind: Event
|
||||
namespace: "{{ ansible_operator_meta.namespace }}"
|
||||
template: "event.yml.j2"
|
||||
definition: "{{ lookup('template', 'event.yml.j2') }}"
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
name: "{{ ansible_operator_meta.name }}-db-management"
|
||||
kind: Deployment
|
||||
state: present
|
||||
template: "management-pod.yml.j2"
|
||||
definition: "{{ lookup('template', 'management-pod.yml.j2') }}"
|
||||
wait: true
|
||||
|
||||
- name: Check to make sure backup directory exists on PVC
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
namespace: "{{ ansible_operator_meta.namespace }}"
|
||||
apply: yes
|
||||
wait: yes
|
||||
template: "secrets.yml.j2"
|
||||
definition: "{{ lookup('template', 'secrets.yml.j2') }}"
|
||||
no_log: true
|
||||
|
||||
- name: Remove ownerReference on restored secrets
|
||||
|
||||
Reference in New Issue
Block a user