diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-04-30 23:07:35 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-04-30 23:07:35 -0700 |
commit | d357056752382ffe4ae866304d3573c361dbe21a (patch) | |
tree | 04f1a5f5024d8d7be9e82d990dd2aee6575190dc /playbooks/roles/mail/tasks | |
parent | 3ddb82656d6d0c34f47962db25d37adf6ebb15e1 (diff) | |
download | infra-d357056752382ffe4ae866304d3573c361dbe21a.tar.gz infra-d357056752382ffe4ae866304d3573c361dbe21a.zip |
move to new outbound server on linode. Fix a lot of deployment time issue things, including HIGH AVAILABILITY EMAIL OWOOWOJIJODOFKJSDF
Diffstat (limited to 'playbooks/roles/mail/tasks')
-rw-r--r-- | playbooks/roles/mail/tasks/main.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/playbooks/roles/mail/tasks/main.yml b/playbooks/roles/mail/tasks/main.yml index b2a7ea8..dbda130 100644 --- a/playbooks/roles/mail/tasks/main.yml +++ b/playbooks/roles/mail/tasks/main.yml @@ -1,9 +1,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 }}" - |