This repository has been archived on 2022-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
docker-traefik/tasks/traefic.yml

24 lines
573 B
YAML
Raw Normal View History

2021-10-13 11:22:25 +00:00
- 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'
2021-10-13 11:41:02 +00:00
- name: Create a network
community.docker.docker_network:
name: web
2021-10-13 11:22:25 +00:00
- name: Run `docker-compose up` again
community.docker.docker_compose:
project_src: /root/traefic/
build: no