infra/roles/scurvy/tasks/main.yml
2024-01-10 02:22:27 -05:00

23 lines
518 B
YAML

---
- name: ensure scurvy docker/compose exist
file:
path: /etc/docker/compose/scurvy
state: directory
owner: root
group: root
mode: 0700
- name: build scurvy docker-compose.yml.j2
template:
src: ../templates/docker-compose.yml.j2
dest: /etc/docker/compose/scurvy/docker-compose.yml
owner: root
group: root
mode: u=rw,g=r,o=r
- name: daemon-reload and enable scurvy
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@scurvy