ansible-msmtp-role/tasks/msmtp.yml

34 lines
512 B
YAML
Raw Normal View History

2014-03-21 20:16:55 +01:00
---
# Author: Adham Helal
#
# Objective: Deploy msmtp
- name: Install msmtp and mailx
2021-12-01 16:57:04 +01:00
apt:
name: "{{ item }}"
state: present
update_cache: yes
cache_valid_time: 3600
2014-03-21 20:16:55 +01:00
with_items:
- msmtp-mta
- bsd-mailx
- name: Copy mstprc conf file
2014-03-26 19:24:35 +01:00
template:
2021-12-01 16:57:04 +01:00
src: msmtprc.j2
dest: /etc/msmtprc
owner: root
group: root
mode: 0644
2014-03-21 20:16:55 +01:00
- name: Copy aliases conf file
2021-12-01 16:57:04 +01:00
template:
src: aliases.j2
dest: /etc/aliases
owner: root
group: root
mode: 0644