🚨: fix ansible-lint
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m29s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m29s
This commit is contained in:
@@ -2,23 +2,23 @@
|
||||
|
||||
- name: Set package fact
|
||||
ansible.builtin.set_fact:
|
||||
muninpkgs:
|
||||
munin_client_muninpkgs:
|
||||
- muninlite
|
||||
munin_need_reconfigure: false
|
||||
munin_client_munin_need_reconfigure: false
|
||||
when: ansible_facts['distribution'] == "LEDE" or ansible_facts['distribution'] == "OpenWRT" or ansible_facts['distribution'] == "OpenWrt"
|
||||
|
||||
- name: Set other packages fact
|
||||
ansible.builtin.set_fact:
|
||||
muninpkgs:
|
||||
munin_client_muninpkgs:
|
||||
- munin-node
|
||||
- munin-plugins-core
|
||||
- munin-plugins-extra
|
||||
munin_need_reconfigure: true
|
||||
munin_client_munin_need_reconfigure: true
|
||||
when: ansible_facts['distribution'] == "Debian"
|
||||
|
||||
- name: Install munin node packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ muninpkgs }}"
|
||||
name: "{{ munin_client_muninpkgs }}"
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
mode: "0o644"
|
||||
notify:
|
||||
- Restart munin-node
|
||||
when: munin_need_reconfigure
|
||||
when: munin_client_munin_need_reconfigure
|
||||
|
||||
## Adding modules for specific functions
|
||||
# for NginX webservers
|
||||
@@ -98,14 +98,14 @@
|
||||
changed_when: true
|
||||
notify:
|
||||
- Restart munin-node
|
||||
when: munin_need_reconfigure
|
||||
when: munin_client_munin_need_reconfigure
|
||||
|
||||
# Useless junks for everyone
|
||||
- name: Delete useless junks for everyone
|
||||
ansible.builtin.file:
|
||||
path: "/etc/munin/plugins/{{ item }}"
|
||||
state: absent
|
||||
when: munin_need_reconfigure
|
||||
when: munin_client_munin_need_reconfigure
|
||||
loop:
|
||||
- users
|
||||
|
||||
|
Reference in New Issue
Block a user