Merge pull request #293 from Zokormazo/restore-kind

Restore: set proper kind var after deploying AWX CR
This commit is contained in:
Christian Adams
2021-05-07 09:23:02 -04:00
committed by GitHub

View File

@@ -1,5 +1,9 @@
---
- name: Save kind
set_fact:
_kind: "{{ kind }}"
- name: Get AWX object definition from pvc
k8s_exec:
namespace: "{{ backup_pvc_namespace }}"
@@ -36,6 +40,10 @@
- {'key': 'tower_broadcast_websocket_secret', 'value': '{{ broadcast_websocket_secret_name }}'}
- {'key': 'tower_postgres_configuration_secret', 'value': '{{ postgres_configuration_secret_name }}'}
- name: Restore kind
set_fact:
kind: "{{ _kind }}"
- name: Deploy AWX
k8s:
state: "{{ state | default('present') }}"