[TIDY] Update to ansible 4 module names
This commit is contained in:
parent
3c1939f431
commit
a2fc598416
19 changed files with 89 additions and 89 deletions
|
|
@ -4,7 +4,7 @@
|
|||
# Install exim
|
||||
- name: cronmails - Install exim4 as MTA
|
||||
become: yes
|
||||
yum:
|
||||
ansible.builtin.yum:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
vars:
|
||||
|
|
@ -14,29 +14,29 @@
|
|||
# Configure exim
|
||||
- name: cronmails - Create exim config folder
|
||||
become: yes
|
||||
file:
|
||||
ansible.builtin.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:
|
||||
# # ansible.builtin.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:
|
||||
# # ansible.builtin.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"
|
||||
# # ansible.builtin.shell: "update-exim.conf"
|
||||
# # when: cronmails_conftmp_update.changed or cronmails_conffile_update.changed
|
||||
# - name: cronmails - Enable and start exim
|
||||
# become: yes
|
||||
# service:
|
||||
# ansible.builtin.service:
|
||||
# name: exim
|
||||
# state: started
|
||||
# enabled: yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue