clone from private repo
This commit is contained in:
commit
c0ae983acb
48 changed files with 2766 additions and 0 deletions
10
mail_system/tasks/remove_other_mtas.yml
Normal file
10
mail_system/tasks/remove_other_mtas.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
- name: find all installed versions of mail-transport-agent except postfix
|
||||
shell: aptitude search '~i~Pmail-transport-agent' | sed -e 's/^...\(.*\)/\1/' | awk '{ print $1 }' | grep -v postfix || /bin/true
|
||||
register: mtas
|
||||
|
||||
- name: purge MTAs other than postfix
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: absent
|
||||
purge: yes
|
||||
loop: "{{ mtas.stdout_lines|list }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue