CORD-1729 Support "localhost" as build node for full POD / CiaB
Change-Id: I2b30cbd7bbafd8c50b69878b60a5e4683afed9de
diff --git a/roles/imagebuilder-publish/tasks/main.yml b/roles/imagebuilder-publish/tasks/main.yml
index 1ddf28e..a31c938 100644
--- a/roles/imagebuilder-publish/tasks/main.yml
+++ b/roles/imagebuilder-publish/tasks/main.yml
@@ -19,11 +19,17 @@
docker_image:
name: "{{ deploy_docker_registry }}/{{ item.base }}:{{ deploy_docker_tag }}"
state: absent
- with_items: "{{ ib_built }} + {{ ib_pulled }}"
+ with_flattened:
+ - "{{ ib_built }}"
+ - "{{ ib_pulled }}"
+ - "{{ ib_preexisting_images }}"
- name: Tag and push the images managed by ImageBuilder
docker_image:
name: "{{ item.base }}:{{ build_docker_tag }}"
repository: "{{ deploy_docker_registry }}/{{ item.base }}:{{ deploy_docker_tag }}"
push: True
- with_items: "{{ ib_built }} + {{ ib_pulled }}"
+ with_flattened:
+ - "{{ ib_built }}"
+ - "{{ ib_pulled }}"
+ - "{{ ib_preexisting_images }}"