mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-28 22:33:10 +00:00
Update secrets.yml We need to specify a container in environments that use sidecar injection, like in the case of istio service mesh. If the container is not specified, and a side car is injected so there are multiple containers running in the pod, this task will fail because a container was not specified in a pod with multiple containers.
22 lines
581 B
YAML
22 lines
581 B
YAML
---
|
|
|
|
- name: Import awx_object variables
|
|
block:
|
|
|
|
- name: Create temp file for spec dict
|
|
tempfile:
|
|
state: file
|
|
register: tmp_spec
|
|
|
|
- name: Get AWX object definition from pvc
|
|
k8s_cp:
|
|
namespace: "{{ backup_pvc_namespace }}"
|
|
pod: "{{ ansible_operator_meta.name }}-db-management"
|
|
container: "{{ ansible_operator_meta.name }}-db-management"
|
|
remote_path: "{{ backup_dir }}/awx_object"
|
|
local_path: "{{ tmp_spec.path }}"
|
|
state: from_pod
|
|
|
|
- name: Include spec vars to save them as a dict
|
|
include_vars: "{{ tmp_spec.path }}"
|