mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
- we could alternatively direct users to use the full GVK. Issue is potential conflict with AH operator CRs
27 lines
695 B
YAML
27 lines
695 B
YAML
---
|
|
|
|
- name: Look up details for this deployment
|
|
k8s_info:
|
|
api_version: 'v1beta1' # TODO: How to parameterize this?
|
|
kind: "AWX" # TODO: How to parameterize this?
|
|
name: "{{ meta.name }}"
|
|
namespace: "{{ meta.namespace }}"
|
|
register: this_awx
|
|
|
|
- block:
|
|
- include_tasks: init.yml
|
|
|
|
- include_tasks: postgres.yml
|
|
|
|
- include_tasks: secrets.yml
|
|
|
|
# TODO: Add task to change the status on the backup CR when this runs successfully
|
|
- name: Set flag signifying this backup was successful
|
|
set_fact:
|
|
tower_backup_complete: "{{ _backup_dir }}"
|
|
|
|
- include_tasks: cleanup.yml
|
|
|
|
when:
|
|
- this_awx['resources'][0]['status']['towerMigratedFromSecret'] is not defined
|