James E. Blair 1c069add54 Run zuul-launcher
This doesn't do anything substantial yet, but we'd like to start running
the server soon in order to test it out.

Change-Id: I9eb2bccd6e5e9a064cbaff10676aeb1af6653f98
2024-09-18 16:37:40 -07:00

40 lines
938 B
YAML

- 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