- name: Install logging config copy: src: logging.conf dest: /etc/zuul/launcher-logging.conf - name: Rotate launcher logs include_role: name: logrotate vars: logrotate_file_name: /var/log/zuul/launcher.log - name: Rotate launcher debug logs include_role: name: logrotate vars: logrotate_file_name: /var/log/zuul/launcher-debug.log - name: Make docker-compose directory file: state: directory path: /etc/zuul-launcher - name: Install docker-compose file copy: src: docker-compose.yaml dest: /etc/zuul-launcher/docker-compose.yaml - name: Update container images include_tasks: pull.yaml - name: Start containers include_tasks: start.yaml when: zuul_launcher_start | bool # We can prune here as it should leave the "latest" tagged images # as well as the currently running images. - name: Run docker prune to cleanup unneeded images shell: cmd: docker image prune -f