forked from evolix/ansible-roles
dovecot: combine similar tasks
This commit is contained in:
parent
63745c2697
commit
112bc2133a
|
@ -9,20 +9,18 @@
|
||||||
- name: Munin plugins are present and configured
|
- name: Munin plugins are present and configured
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Disable dovecot plugin
|
- name: Disable Dovecot plugin
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/munin/plugins/dovecot
|
path: /etc/munin/plugins/dovecot
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Remove old dovecot plugin conf
|
- name: Remove old Dovecot plugin conf
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/munin/plugin-conf.d/dovecot
|
path: "/etc/munin/plugin-conf.d/{{ item }}"
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: Remove old dovecot plugin conf
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /etc/munin/plugin-conf.d/z-evolinux-dovecot
|
|
||||||
state: absent
|
state: absent
|
||||||
|
loop:
|
||||||
|
- dovecot
|
||||||
|
- z-evolinux-dovecot
|
||||||
|
|
||||||
- name: "Remount /usr if needed"
|
- name: "Remount /usr if needed"
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
|
Loading…
Reference in a new issue