Fix deprecated and lint

This commit is contained in:
SebClem 2023-05-20 15:34:53 +02:00
parent d3bb25dd68
commit 96863e7cba
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 30 additions and 34 deletions

View File

@ -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"

View File

@ -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