blob: 69516ab433848163545db2ab7ca47f9706da1da4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
---
- name: Build bin compose dirs
ansible.builtin.file:
state: directory
dest: '{{ bin_base }}/{{ item.path }}'
owner: 1000
group: 1000
mode: 755
with_filetree: '../templates'
when: item.state == 'directory'
- name: Build bin compose files
ansible.builtin.template:
src: '{{ item.src }}'
dest: '{{ bin_base }}/{{ item.path }}'
owner: 1000
group: 1000
mode: 755
with_filetree: '../templates'
when: item.state == 'file'
- name: Deploy bin stack
ansible.builtin.command:
cmd: 'docker stack deploy -c {{ bin_base }}/stacks/docker-compose.yml bin'
|