blob: 19074fe304432f28ef8441b8aac7178fb7555227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- name: Build traextor compose dirs
ansible.builtin.file:
state: directory
dest: '{{ traextor_base }}/{{ item.path }}'
with_filetree: '../templates'
when: item.state == 'directory'
- name: Build traextor compose files
ansible.builtin.template:
src: '{{ item.src }}'
dest: '{{ traextor_base }}/{{ item.path }}'
with_filetree: '../templates'
when: item.state == 'file'
- name: Deploy Traextor stack
ansible.builtin.command:
cmd: "docker stack deploy -c {{ traextor_base }}/stacks/docker-compose.yml traextor"
|