[CODE] add CentOS support to telegraf and cronmails (fix #6)
This commit is contained in:
parent
cb289b8fb5
commit
71b3e80227
7 changed files with 88 additions and 30 deletions
|
|
@ -2,15 +2,14 @@
|
|||
# Server/Cronmails: Setup Mails from Cronjobs (install exim)
|
||||
|
||||
# Install and configure exim
|
||||
- name: cronmails - Install exim4 as MTA
|
||||
become: yes
|
||||
apt:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- exim4
|
||||
- mailutils
|
||||
- name: cronmails - Install exim4
|
||||
include_tasks: "{{ item }}"
|
||||
with_first_found:
|
||||
- "cronmails-{{ ansible_distribution }}.{{ ansible_distribution_release }}.yml"
|
||||
- "cronmails-{{ ansible_distribution }}.yml"
|
||||
- "cronmails-{{ ansible_os_family }}.yml"
|
||||
|
||||
# Configure exim
|
||||
- name: cronmails - Create exim4 config folder
|
||||
become: yes
|
||||
file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue