first install new mta, then remove postfix
This commit is contained in:
@@ -1,14 +1,5 @@
|
|||||||
- name: server | utilities | {{ mta_package }}
|
- name: server | utilities | {{ mta_package }}
|
||||||
block:
|
block:
|
||||||
- name: server | utilities | remove postfix
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- postfix
|
|
||||||
- postfix-ldap
|
|
||||||
- postfix-mysql
|
|
||||||
- postfix-sqlite
|
|
||||||
- postgrey
|
|
||||||
state: absent
|
|
||||||
- name: server | utilities | install {{ mta_package }}
|
- name: server | utilities | install {{ mta_package }}
|
||||||
package:
|
package:
|
||||||
name: "{{ mta_package }}"
|
name: "{{ mta_package }}"
|
||||||
@@ -24,4 +15,13 @@
|
|||||||
- { regex: "^mailhub=.*", line: "mailhub=mail.universe.local"}
|
- { regex: "^mailhub=.*", line: "mailhub=mail.universe.local"}
|
||||||
- { regex: "^hostname=.*", line: "hostname={{ ansible_fqdn }}"}
|
- { regex: "^hostname=.*", line: "hostname={{ ansible_fqdn }}"}
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
|
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
|
||||||
when: postfix is not defined or postfix == false and not (is_proxmox is defined and is_proxmox == true)
|
- name: server | utilities | remove postfix
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- postfix
|
||||||
|
- postfix-ldap
|
||||||
|
- postfix-mysql
|
||||||
|
- postfix-sqlite
|
||||||
|
- postgrey
|
||||||
|
state: absent
|
||||||
|
when: postfix is not defined or postfix == false
|
||||||
|
|||||||
Reference in New Issue
Block a user