|
---
|
|
- 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
|