Make Arch aware
This commit is contained in:
parent
1255ed88eb
commit
5298cbaf93
|
@ -7,6 +7,7 @@
|
|||
- name: Update apt cache
|
||||
apt: update_cache=yes cache_valid_time=3600
|
||||
tags: mail
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Install msmtp and mailx
|
||||
apt: pkg={{item}} state=present
|
||||
|
@ -16,6 +17,15 @@
|
|||
- bsd-mailx
|
||||
tags: mail
|
||||
notify: test mail
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Install msmtp and mailx
|
||||
pacman: name={{item}} state=present
|
||||
with_items:
|
||||
- msmtp
|
||||
- msmtp-mta
|
||||
- mailutils
|
||||
when: ansible_os_family == "Archlinux"
|
||||
|
||||
- name: Copy mstprc conf file
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue