clone from private repo

This commit is contained in:
iburadempa 2019-09-19 10:43:17 +02:00
commit c0ae983acb
48 changed files with 2766 additions and 0 deletions

View 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 }}"