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