|
| 1 | +--- |
| 2 | +- name: Setup container repositories |
| 3 | + pulp.squeezer.container_repository: |
| 4 | + pulp_url: "{{ pulp_url }}" |
| 5 | + username: "{{ pulp_username }}" |
| 6 | + password: "{{ pulp_password }}" |
| 7 | + validate_certs: "{{ pulp_validate_certs | bool }}" |
| 8 | + name: "{{ item.name }}" |
| 9 | + state: "{{ item.state }}" |
| 10 | + with_items: "{{ pulp_repository_container_repos }}" |
| 11 | + |
| 12 | +- name: Setup container remotes |
| 13 | + pulp.squeezer.container_remote: |
| 14 | + pulp_url: "{{ pulp_url }}" |
| 15 | + username: "{{ pulp_username }}" |
| 16 | + password: "{{ pulp_password }}" |
| 17 | + validate_certs: "{{ pulp_validate_certs | bool }}" |
| 18 | + name: "{{ item.name }}-remote" |
| 19 | + url: "{{ item.url }}" |
| 20 | + policy: "{{ item.policy }}" |
| 21 | + upstream_name: "{{ item.upstream_name | default(item.name) }}" |
| 22 | + state: "{{ item.state }}" |
| 23 | + with_items: "{{ pulp_repository_container_repos }}" |
| 24 | + |
| 25 | +- name: Sync container remotes into repositories |
| 26 | + pulp.squeezer.container_sync: |
| 27 | + pulp_url: "{{ pulp_url }}" |
| 28 | + username: "{{ pulp_username }}" |
| 29 | + password: "{{ pulp_password }}" |
| 30 | + validate_certs: "{{ pulp_validate_certs | bool }}" |
| 31 | + repository: "{{ item.name }}" |
| 32 | + remote: "{{ item.name }}-remote" |
| 33 | + with_items: "{{ pulp_repository_container_repos }}" |
| 34 | + when: item.state == "present" |
0 commit comments