forked from rh-ecosystem-edge/enclave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmerge_mirror_manifests.yaml
More file actions
29 lines (29 loc) · 883 Bytes
/
merge_mirror_manifests.yaml
File metadata and controls
29 lines (29 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- name: Merge mirror sources into existing resources
ansible.builtin.command:
argv:
- python3
- "{{ playbook_dir }}/../helpers/mirror/merge_mirror_sets.py"
- --oc-bin
- "{{ workingDir }}/bin/oc"
- --input-manifest
- "{{ item.input_manifest }}"
- --output-manifest
- "{{ item.output_manifest }}"
- --api-kind
- "{{ item.api_kind }}"
- --oc-resource
- "{{ item.oc_resource }}"
- --spec-key
- "{{ item.spec_key }}"
- --apply
- --max-attempts
- "{{ merge_mirror_max_attempts | default(5) }}"
- --retry-delay
- "{{ merge_mirror_retry_delay | default(1.0) }}"
changed_when: false
environment:
KUBECONFIG: "{{ workingDir }}/ocp-cluster/auth/kubeconfig"
loop: "{{ merge_mirror_items }}"
when:
- merge_mirror_enabled | bool
- item.source_exists | bool