mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-06 13:22:50 +00:00
Remove ownerReferences based on secret name from backup
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
namespace: '{{ meta.namespace }}'
|
||||
ownerReferences: null
|
||||
loop:
|
||||
- '{{ deployment_name }}-admin-password'
|
||||
- '{{ deployment_name }}-secret-key'
|
||||
- '{{ deployment_name }}-postgres-configuration'
|
||||
- '{{ deployment_name }}-broadcast-websocket'
|
||||
- '{{ secret_key_secret_name }}'
|
||||
- '{{ admin_password_secret_name }}'
|
||||
- '{{ broadcast_websocket_secret_name }}'
|
||||
- '{{ postgres_configuration_secret_name }}'
|
||||
|
||||
@@ -16,8 +16,10 @@
|
||||
- name: Write spec vars to temp file
|
||||
shell: |
|
||||
echo '{{ awx_object.stdout }} > {{ tmp_spec.path }}'
|
||||
changed_when: false
|
||||
|
||||
- include_vars: "{{ tmp_spec.path }}"
|
||||
- name: Include spec vars to save them as a dict
|
||||
include_vars: "{{ tmp_spec.path }}"
|
||||
register: spec
|
||||
|
||||
- name: Use include_vars to read in spec as a dict (because spec doesn't have quotes)
|
||||
|
||||
Reference in New Issue
Block a user