Files
operating-automation/playbooks/managed-mailcow/update-mailcow.yaml
2025-10-08 09:32:02 +02:00

27 lines
977 B
YAML

- name: Update mailcow (update.sh)
hosts: all
vars:
github_mailcow_ver: "2025-09b" # GitHub Version Tag | Value to compare the current running mailcow version to.
disk_space_percent_max: "97" # Number in percent | Defines the max allowed disk utilization until ansible is not updating mailcow automatically
debug: true # Or False if you dont' wanna see verbose outputs of role outputs
tasks:
- import_role:
name: roles/managed-mailcow
tasks_from: find-mailcow-composedir.yml
- import_role:
name: roles/managed-mailcow
tasks_from: install-mailcow-components.yml
- import_role:
name: roles/managed-mailcow
tasks_from: update-mailcow.yml
- import_role:
name: roles/docker
tasks_from: restart-daemon.yml
when: github_mailcow_ver == "2025-09b" # Only restart docker if mailcow was updated
- import_role:
name: roles/docker
tasks_from: cleanup-all.yml