mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
18 lines
608 B
YAML
18 lines
608 B
YAML
---
|
|
- name: Set apiVersion and kind variables
|
|
set_fact:
|
|
api_version: '{{ hostvars["localhost"]["inventory_file"].split("/")[4:6] | join("/") }}'
|
|
kind: '{{ hostvars["localhost"]["inventory_file"].split("/")[6] }}'
|
|
|
|
# The backup directory in this status can be referenced when restoring
|
|
- name: Update Tower Backup status
|
|
operator_sdk.util.k8s_status:
|
|
api_version: '{{ api_version }}'
|
|
kind: "{{ kind }}"
|
|
name: "{{ meta.name }}"
|
|
namespace: "{{ meta.namespace }}"
|
|
status:
|
|
backupDirectory: "{{ backup_dir }}"
|
|
backupClaim: "{{ backup_claim }}"
|
|
when: backup_complete
|