From c533d203a0cbc209b7c2882b933b170e591cc795 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 12 Dec 2023 01:08:50 +0100 Subject: [PATCH] Add mailcow (only domains) to ansible --- _ansible/node001.yml | 1 + _ansible/roles/mailcow/tasks/main.yml | 7 +++++++ _ansible/roles/mailcow/vars/main.yml | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 _ansible/roles/mailcow/tasks/main.yml create mode 100644 _ansible/roles/mailcow/vars/main.yml diff --git a/_ansible/node001.yml b/_ansible/node001.yml index e8e33dc..26fa04e 100644 --- a/_ansible/node001.yml +++ b/_ansible/node001.yml @@ -2,4 +2,5 @@ - name: Run roles for node001 hosts: node001 roles: + - mailcow - minecraft-2 diff --git a/_ansible/roles/mailcow/tasks/main.yml b/_ansible/roles/mailcow/tasks/main.yml new file mode 100644 index 0000000..fd2ba44 --- /dev/null +++ b/_ansible/roles/mailcow/tasks/main.yml @@ -0,0 +1,7 @@ +--- +- name: Deploy {{ svc.name }} + tags: + - mailcow + - email + block: + - import_tasks: steps/template-site-config.yml diff --git a/_ansible/roles/mailcow/vars/main.yml b/_ansible/roles/mailcow/vars/main.yml new file mode 100644 index 0000000..3f2d236 --- /dev/null +++ b/_ansible/roles/mailcow/vars/main.yml @@ -0,0 +1,6 @@ +svc: + name: mailcow + domain: mail.serguzim.me + docker_host: host.docker.internal + port: 3004 + additional_domains: "{{ ['autodiscover', 'autoconfig'] | product(vault_mailcow.domains) | map('join', '.') }}"