ansible/roles/docker_host/tasks/deploy_compose.yml

15 lines
300 B
YAML

---
- name: Copy docker compose file to target
ansible.builtin.template:
src: "files/{{ item }}"
dest: "/opt/docker/compose/{{ item }}"
owner: "{{ user }}"
group: "{{ user }}"
mode: "644"
backup: true
loop:
- compose.yaml
notify:
- Restart docker
become: true