[FIX] misc centos issues

This commit is contained in:
Jannik Beyerstedt 2020-03-08 17:56:50 +01:00
parent 24a10d19a9
commit 4c11ea5dfe
6 changed files with 71 additions and 37 deletions

View file

@ -9,5 +9,34 @@
state: present
vars:
packages:
- exim4
- mailutils
- exim
# Configure exim
- name: cronmails - Create exim config folder
become: yes
file:
path: /etc/exim
state: directory
# TODO: exim config works quite differently on CentOS compared to Debian!!!
# # - name: cronmails - Copy exim config template
# # become: yes
# # copy:
# # src: "{{ role_path }}/files/exim4.conf.template"
# # dest: /etc/exim/exim.conf.template
# # register: cronmails_conftmp_update
# # - name: cronmails - Copy exim config file
# # become: yes
# # template:
# # src: "{{ role_path }}/templates/update-exim4.conf.conf"
# # dest: /etc/exim/update-exim.conf.conf
# # register: cronmails_conffile_update
# # - name: cronmails - Run update-exim.conf
# # become: yes
# # shell: "update-exim.conf"
# # when: cronmails_conftmp_update.changed or cronmails_conffile_update.changed
# - name: cronmails - Enable and start exim
# become: yes
# service:
# name: exim
# state: started
# enabled: yes