- command: pwd register: pwd tags: - build - start - test - name: make all docker_image: state: build name: "{{ item.name }}" docker_api_version: 1.18 dockerfile: build/test/{{ item.name }}.Dockerfile path: "{{ pwd.stdout }}" with_items: "{{ images }}" tags: - build - name: stop all docker: name: "{{ item.name }}" state: stopped image: "{{ item.name }}" docker_api_version: 1.18 stop_timeout: 2 with_items: "{{ images }}" tags: - stop - name: start all docker: name: "{{ item.name }}" image: "{{ item.name }}" docker_api_version: 1.18 state: started net: bridge ports: "{{ item.ports }}" links: "{{ item.links }}" volumes: [ "{{ pwd.stdout }}/:/opt/gondul" ] with_items: "{{ images }}" tags: - start - name: workaround to get gondul-varnish-front-ip shell: "docker inspect gondul-varnish-test | grep IPAddress | sed 's/[^0-9.]//g' | grep 172.17 | uniq" register: ip tags: - start - test - name: workaround to get gondul-front-ip shell: "docker inspect gondul-front-test | grep IPAddress | sed 's/[^0-9.]//g' | grep 172.17 | uniq" register: ipfront tags: - start - test - name: Display IP tags: - start - test debug: msg: "Varnish test is available at http://{{ ip.stdout }}/ uncached ip: http://{{ ipfront.stdout }}/ "