Rename mailcow role to mailcowdockerized
This commit is contained in:
parent
e14ef048cc
commit
89909cd6ae
4 changed files with 7 additions and 7 deletions
5
roles/backup/files/hooks/mailcowdockerized
Executable file
5
roles/backup/files/hooks/mailcowdockerized
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export MAILCOW_BACKUP_LOCATION="$1"
|
||||
|
||||
/opt/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup all --delete-days 1
|
||||
10
roles/mailcowdockerized/tasks/main.yml
Normal file
10
roles/mailcowdockerized/tasks/main.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ svc.name }}
|
||||
vars:
|
||||
svc: "{{ mailcowdockerized_svc }}"
|
||||
block:
|
||||
- name: Import tasks to template the site for the reverse proxy
|
||||
ansible.builtin.import_tasks: tasks/steps/template-site-config.yml
|
||||
7
roles/mailcowdockerized/vars/main.yml
Normal file
7
roles/mailcowdockerized/vars/main.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
mailcowdockerized_svc:
|
||||
name: mailcowdockerized
|
||||
domain: mail.serguzim.me
|
||||
docker_host: host.docker.internal
|
||||
port: 3004
|
||||
additional_domains: "{{ ['autodiscover', 'autoconfig'] | product(vault_mailcowdockerized.domains) | map('join', '.') }}"
|
||||
|
|
@ -240,15 +240,15 @@ services = {
|
|||
s3 = true
|
||||
},
|
||||
|
||||
mailcow = {
|
||||
name = "mailcow"
|
||||
mailcowdockerized = {
|
||||
name = "mailcowdockerized"
|
||||
host = "node003"
|
||||
dns = [{
|
||||
domain = "serguzim.me"
|
||||
target = "mail"
|
||||
}]
|
||||
backup = [{
|
||||
name = "mailcow"
|
||||
name = "mailcowdockerized"
|
||||
type = "hook"
|
||||
}]
|
||||
monitoring = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue