[TIDY] Set some "diff: false", fix linter warnings
This commit is contained in:
parent
f97ef4dee6
commit
fe97b0ae76
19 changed files with 189 additions and 175 deletions
|
|
@ -2,8 +2,8 @@
|
|||
# Server/Cronmails: Setup Mails from Cronjobs (install exim) - Debian Version
|
||||
|
||||
# Install exim
|
||||
- name: cronmails - Install exim4 as MTA
|
||||
become: yes
|
||||
- name: Cronmails - Install exim4 as MTA
|
||||
become: true
|
||||
ansible.builtin.apt:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
|
|
@ -11,38 +11,39 @@
|
|||
packages:
|
||||
- exim4
|
||||
- mailutils
|
||||
diff: false
|
||||
|
||||
# Configure exim
|
||||
- name: cronmails - Create exim4 config folder
|
||||
become: yes
|
||||
- name: Cronmails - Create exim4 config folder
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/exim4
|
||||
state: directory
|
||||
- name: cronmails - Copy exim4 config template
|
||||
become: yes
|
||||
- name: Cronmails - Copy exim4 config template
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: "{{ role_path }}/files/exim4.conf.template"
|
||||
dest: /etc/exim4/exim4.conf.template
|
||||
register: cronmails_conftmp_update
|
||||
- name: cronmails - Copy exim4 config file
|
||||
become: yes
|
||||
- name: Cronmails - Copy exim4 config file
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/update-exim4.conf.conf"
|
||||
dest: /etc/exim4/update-exim4.conf.conf
|
||||
register: cronmails_conffile_update
|
||||
- name: cronmails - Set /etc/mailname
|
||||
become: yes
|
||||
- name: Cronmails - Set /etc/mailname
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/mailname
|
||||
content: "{{ exim_etc_mailname }}"
|
||||
register: cronmails_mailname_update
|
||||
- name: cronmails - Run update-exim4.conf
|
||||
- name: Cronmails - Run update-exim4.conf
|
||||
when: cronmails_conftmp_update.changed or cronmails_conffile_update.changed or cronmails_mailname_update.changed
|
||||
become: yes
|
||||
become: true
|
||||
ansible.builtin.shell: "update-exim4.conf"
|
||||
- name: cronmails - Enable and start exim4
|
||||
become: yes
|
||||
- name: Cronmails - Enable and start exim4
|
||||
become: true
|
||||
ansible.builtin.service:
|
||||
name: exim4
|
||||
state: restarted
|
||||
enabled: yes
|
||||
enabled: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue