- name: Synchronize docker-compose directory synchronize: src: zuul-preview-docker/ dest: /etc/zuul-preview-docker/ - name: Install docker-compose package: name: - docker-compose state: present - name: Run docker-compose pull shell: cmd: docker-compose pull chdir: /etc/zuul-preview-docker/ - name: Run docker-compose up shell: cmd: docker-compose up -d chdir: /etc/zuul-preview-docker/ - name: Run docker prune to cleanup unneeded images shell: cmd: docker image prune -f