21 lines
No EOL
499 B
YAML
21 lines
No EOL
499 B
YAML
- name: Recursively change ownership of a directory
|
|
ansible.builtin.file:
|
|
path: /root/traefic
|
|
state: directory
|
|
recurse: yes
|
|
owner: root
|
|
group: root
|
|
|
|
- name: Template a file to /root/traefic/doicker-compose.yml
|
|
ansible.builtin.template:
|
|
src: docker-compose.j2
|
|
dest: /root/traefic/docker-compose.yml
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
|
|
|
|
- name: Run `docker-compose up` again
|
|
community.docker.docker_compose:
|
|
project_src: /root/traefic/
|
|
build: no |