blob: 525482694a19a8b39358eb55b19f8dfc8747509c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- name: Build bin compose dirs
ansible.builtin.file:
state: directory
dest: '{{ bin_base }}/{{ item.path }}'
with_filetree: '../templates'
when: item.state == 'directory'
- name: Build bin compose files
ansible.builtin.template:
src: '{{ item.src }}'
dest: '{{ bin_base }}/{{ item.path }}'
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'
|