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