infrastructure/tasks/compose.yml
2021-10-26 22:17:13 +02:00

19 lines
394 B
YAML

---
- name: Create compose folders
file:
path: "/root/compose/{{ app }}"
state: directory
recurse: true
mode: 0755
- name: Template compose files
template:
src: "compose/{{ app }}.yml"
dest: "/root/compose/{{ app }}/docker-compose.yml"
mode: 0600
- name: Compose app
community.docker.docker_compose:
project_src: "/root/compose/{{ app }}"
pull: true