yamllint : indentation, trailing-spaces and truthy value
This commit is contained in:
parent
337e80b670
commit
7cc374ea9e
|
@ -10,23 +10,23 @@ collectd_interval: "300"
|
|||
|
||||
# exec plugin
|
||||
|
||||
collectd_plugin_exec: False # Set to true only if one of the exec plugins below is also set to true
|
||||
collectd_plugin_exec: false # Set to true only if one of the exec plugins below is also set to true
|
||||
collectd_plugin_exec_interval: "{{ collectd_interval }}"
|
||||
collectd_plugin_exec_ifq_drops: False
|
||||
collectd_plugin_exec_dns_stats: False # Based on unbound
|
||||
collectd_plugin_exec_ifq_drops: false
|
||||
collectd_plugin_exec_dns_stats: false # Based on unbound
|
||||
collectd_plugin_exec_dns_stats_interval: "{{ collectd_interval }}"
|
||||
|
||||
# others plugins
|
||||
|
||||
collectd_plugin_cpu: True
|
||||
collectd_plugin_df: True
|
||||
collectd_plugin_disk: True
|
||||
collectd_plugin_interface: True
|
||||
collectd_plugin_load: True
|
||||
collectd_plugin_memory: True
|
||||
collectd_plugin_pf: True
|
||||
collectd_plugin_processes: True
|
||||
collectd_plugin_swap: True
|
||||
collectd_plugin_tcpconns: True
|
||||
collectd_plugin_uptime: True
|
||||
collectd_plugin_users: True
|
||||
collectd_plugin_cpu: true
|
||||
collectd_plugin_df: true
|
||||
collectd_plugin_disk: true
|
||||
collectd_plugin_interface: true
|
||||
collectd_plugin_load: true
|
||||
collectd_plugin_memory: true
|
||||
collectd_plugin_pf: true
|
||||
collectd_plugin_processes: true
|
||||
collectd_plugin_swap: true
|
||||
collectd_plugin_tcpconns: true
|
||||
collectd_plugin_uptime: true
|
||||
collectd_plugin_users: true
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
- name: Enabling Collectd
|
||||
service:
|
||||
name: collectd
|
||||
enabled: yes
|
||||
enabled: true
|
||||
tags:
|
||||
- collectd
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
|||
src: ifq_drops.sh
|
||||
dest: /usr/local/share/collectd/scripts/ifq_drops.sh
|
||||
mode: 0755
|
||||
force: yes
|
||||
force: true
|
||||
when: collectd_plugin_exec_ifq_drops
|
||||
tags:
|
||||
- collectd
|
||||
|
@ -51,7 +51,7 @@
|
|||
src: dns_stats.sh
|
||||
dest: /usr/local/share/collectd/scripts/dns_stats.sh
|
||||
mode: 0755
|
||||
force: yes
|
||||
force: true
|
||||
when: collectd_plugin_exec_dns_stats
|
||||
tags:
|
||||
- collectd
|
||||
|
@ -60,9 +60,10 @@
|
|||
lineinfile:
|
||||
path: /var/unbound/etc/unbound.conf
|
||||
regexp: 'statistics-interval'
|
||||
line: ' statistics-interval: {{ collectd_plugin_exec_dns_stats_interval }}'
|
||||
line:
|
||||
' statistics-interval: {{ collectd_plugin_exec_dns_stats_interval }}'
|
||||
insertafter: 'hide-version:'
|
||||
backup: yes
|
||||
backup: true
|
||||
notify: reload unbound
|
||||
when: collectd_plugin_exec_dns_stats
|
||||
tags:
|
||||
|
@ -80,7 +81,7 @@
|
|||
lineinfile:
|
||||
path: /var/unbound/etc/unbound.conf
|
||||
regexp: 'statistics-interval'
|
||||
backup: yes
|
||||
backup: true
|
||||
state: absent
|
||||
notify: reload unbound
|
||||
when: not collectd_plugin_exec_dns_stats
|
||||
|
|
Loading…
Reference in a new issue