Fixes undercloud install failure with setting hostname
[apex.git] / lib / ansible / playbooks / patch_containers.yml
index bc4899b..1ef0581 100644 (file)
@@ -1,13 +1,13 @@
 ---
   - name: "Pull docker image to ensure it exists locally: {{ item }}"
-    shell: docker pull {{ undercloud_ip }}:8787/tripleo{{ os_version }}/centos-binary-{{ item }}:current-tripleo
+    shell: "{{ container_client }} pull {{ undercloud_ip }}:8787/tripleo{{ os_version }}/centos-binary-{{ item }}:current-tripleo"
   - name: "Find docker image user {{ item }}"
     shell: >
-      docker inspect --format='{{ '{{' }}.ContainerConfig.User{{ '}}' }}'
+      {{ container_client }} inspect --format='{{ '{{' }}.ContainerConfig.User{{ '}}' }}'
       {{ undercloud_ip }}:8787/tripleo{{ os_version }}/centos-binary-{{ item }}:current-tripleo
     register: user_result
   - name: "Patch docker image {{ item }}"
     shell: >
-      cd /home/stack/containers/{{ item }} && docker build
+      cd /home/stack/containers/{{ item }} && {{ container_client }} build
       --build-arg REAL_USER={{ user_result.stdout }}
       -t {{ undercloud_ip }}:8787/tripleo{{ os_version }}/centos-binary-{{ item }}:apex .