Fix deprecated and lint
This commit is contained in:
parent
d3bb25dd68
commit
96863e7cba
@ -1,3 +1,32 @@
|
||||
---
|
||||
|
||||
- include: msmtp.yml
|
||||
# Author: Adham Helal
|
||||
#
|
||||
# Objective: Deploy msmtp
|
||||
|
||||
|
||||
- name: Install msmtp and mailx
|
||||
ansible.builtin.apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- msmtp-mta
|
||||
- bsd-mailx
|
||||
|
||||
- name: Copy mstprc conf file
|
||||
ansible.builtin.template:
|
||||
src: msmtprc.j2
|
||||
dest: /etc/msmtprc
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Copy aliases conf file
|
||||
ansible.builtin.template:
|
||||
src: aliases.j2
|
||||
dest: /etc/aliases
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
@ -1,33 +0,0 @@
|
||||
---
|
||||
|
||||
# Author: Adham Helal
|
||||
#
|
||||
# Objective: Deploy msmtp
|
||||
|
||||
|
||||
- name: Install msmtp and mailx
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- msmtp-mta
|
||||
- bsd-mailx
|
||||
|
||||
- name: Copy mstprc conf file
|
||||
template:
|
||||
src: msmtprc.j2
|
||||
dest: /etc/msmtprc
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Copy aliases conf file
|
||||
template:
|
||||
src: aliases.j2
|
||||
dest: /etc/aliases
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
Loading…
Reference in New Issue
Block a user