mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 05:43:11 +00:00
21 lines
529 B
YAML
21 lines
529 B
YAML
---
|
|
- name: Look up details for this backup object
|
|
k8s_info:
|
|
api_version: "{{ api_version }}"
|
|
kind: "{{ kind }}"
|
|
name: "{{ ansible_operator_meta.name }}"
|
|
namespace: "{{ ansible_operator_meta.namespace }}"
|
|
register: this_backup
|
|
|
|
- block:
|
|
- include_tasks: init.yml
|
|
|
|
- include_tasks: delete_backup.yml
|
|
|
|
- include_tasks: cleanup.yml
|
|
vars:
|
|
backup_dir: "{{ this_backup['resources'][0]['status']['backupDirectory'] | default() }}"
|
|
when:
|
|
- clean_backup_on_delete
|
|
- backup_dir | length > 0
|