blob: dbda13081bd9aac584ca802025e4fd2f3acb4140 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---
- name: Set non-lazily-evaluated mail deployment time
ansible.builtin.set_fact:
deployment_time: "{{ now(utc=true,fmt='%s') }}"
- name: Ensure mail state for deployment "{{ deployment_time }}" exists
ansible.builtin.file:
path: "{{ mail_base }}/volumes/data/dms/mail-state/{{ deployment_time }}"
state: directory
- name: Deploy mail
ansible.builtin.import_tasks: manage-docker-swarm-service.yml
vars:
service_name: mail
template_render_dir: "../templates"
service_destination_dir: "{{ mail_base }}"
|