You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
351 B
11 lines
351 B
---
|
|
- name: Ensure postfix is installed (RedHat).
|
|
yum: name=postfix state=installed
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: Ensure postfix is installed (Debian).
|
|
apt: name=postfix state=installed
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: Ensure postfix is started and enabled at boot.
|
|
service: name=postfix state=started enabled=yes
|
|
|