[ANSIBLE] Fix idempotence deficiencies in 'firewall' and 'nexus' role
[oom/offline-installer.git] / ansible / roles / nexus / tasks / insert-images.yml
1 ---
2 - name: Load docker images and push into registry
3   block:
4     - name: Register component name for docker login/load
5       set_fact:
6         component: "{{ (item.path | basename | splitext)[0] }}"
7
8     - name: Docker login
9       docker_login:
10         registry: "{{ runtime_images[component].registry }}"
11         username: admin
12         password: admin123
13
14     - name: Load and push component {{ component }}
15       docker_image:
16         name: "{{ runtime_images[component].registry }}{{ runtime_images[component].path }}"
17         tag: "{{ runtime_images[component].tag }}"
18         push: true
19         load_path: "{{ item.path }}"
20         source: load
21         timeout: 120