mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 11:50:18 +01:00
11 lines
351 B
YAML
11 lines
351 B
YAML
---
|
|
- 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
|