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', '.') }}"