yamllint + ansible-lint

This commit is contained in:
Gitouche 2021-07-01 20:52:55 +02:00
parent 325804daa5
commit 38e50cf95d
5 changed files with 112 additions and 114 deletions

View File

@ -1,3 +1,4 @@
---
galaxy_info:
author: Adham Helal, Christian Wagner, gitouche
description: "Deploy msmtp mailer on RHEL8"

View File

@ -1,20 +1,16 @@
---
# Deploy msmtp
# TODO:
# Fix: Check if mailserver is ready, as Test mail will only work,
# if msmtp is setup after the mailserver is already configured
- name: Copy RPM file to server
copy:
src: msmtp-1.8.15-1.el8.x86_64.rpm
dest: /tmp/msmtp-1.8.15-1.el8.x86_64.rpm
mode: 0400
when: ansible_os_family == "RedHat"
- name: Copy systemd unit file to server
copy:
src: msmtpd.service
dest: /etc/systemd/system/msmtpd.service
mode: 0400
when: ansible_os_family == "RedHat"
- name: enable daemon
@ -71,6 +67,7 @@
template:
src: sysconfig.j2
dest: /etc/sysconfig/msmtpd
mode: 0444
notify:
- test mail
- restart msmtpd