infra/playbooks/roles/kennel/tasks/main.yml

24 lines
512 B
YAML

---
- name: Ensure kennel docker/compose exist
ansible.builtin.file:
path: /etc/docker/compose/kennel
state: directory
owner: root
group: root
mode: 0700
- name: Build kennel docker-compose.yml.j2
ansible.builtin.template:
src: docker-compose.yml.j2
dest: /etc/docker/compose/kennel/docker-compose.yml
owner: root
group: root
mode: 0700
- name: Enable kennel
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@kennel