mmt-infra/playbooks/roles/mmt/tasks/main.yml

24 lines
494 B
YAML
Raw Permalink Normal View History

2024-05-01 04:33:35 -04:00
---
- name: Ensure mmt docker/compose exist
ansible.builtin.file:
path: /etc/docker/compose/mmt
state: directory
owner: root
group: root
mode: 0700
- name: Build mmt docker-compose.yml.j2
ansible.builtin.template:
src: docker-compose.yml.j2
dest: /etc/docker/compose/mmt/docker-compose.yml
owner: root
group: root
mode: 0700
- name: Enable mmt
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@mmt