Skip to content

Commit 6ee5803

Browse files
committed
Merge branch 'master' into workaround-for-bug-with-python-plugins-in-Ubuntu-20.04
2 parents e98f9ba + c96d880 commit 6ee5803

17 files changed

+25
-26
lines changed

.ansible-lint

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
warn_list:
33
- role-name
4+
- name[play]
45
- name[casing]

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
python-version: '3.x'
6666

6767
- name: Install test dependencies
68-
run: pip install 'ansible${{ matrix.ansible-version }}' molecule[docker] docker
68+
run: pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
6969

7070
- name: Run Molecule tests
7171
run: |

tasks/main.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# tasks file
22
---
33
- name: install dependencies
4+
tags:
5+
- configuration
6+
- collectd
7+
- collectd-dependencies
48
block:
5-
69
# See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
710
- name: ensure man directory
811
ansible.builtin.file:
@@ -20,11 +23,6 @@
2023
update_cache: true
2124
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
2225

23-
tags:
24-
- configuration
25-
- collectd
26-
- collectd-dependencies
27-
2826
- name: install additional
2927
ansible.builtin.apt:
3028
name: "{{ collectd_install }}"

templates/etc/collectd/collectd.conf.d/apache.conf.j2

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin apache
44

@@ -12,8 +12,8 @@ LoadPlugin apache
1212
{% if item.password is defined %}
1313
Password "{{ item.password }}"
1414
{% endif %}
15-
VerifyPeer "{{ item.verify_peer | default(true) }}"
16-
VerifyHost "{{ item.verify_host | default(true) }}"
15+
VerifyPeer {{ item.verify_peer | default(true) | bool | to_json }}
16+
VerifyHost {{ item.verify_host | default(true) | bool | to_json }}
1717
{% if item.ca_cert_file is defined %}
1818
CACert "{{ item.ca_cert_file }}"
1919
{% endif %}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin contextswitch

templates/etc/collectd/collectd.conf.d/cpu.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
<Plugin cpu>
44
ReportByCpu true

templates/etc/collectd/collectd.conf.d/df.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin df
44

templates/etc/collectd/collectd.conf.d/disk.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin disk
44

templates/etc/collectd/collectd.conf.d/interface.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
<Plugin "interface">
44
{% for interface in collectd_plugin_interface_interfaces | default([]) %}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin irq

templates/etc/collectd/collectd.conf.d/mysql.conf.j2

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin mysql
44

@@ -21,9 +21,9 @@ LoadPlugin mysql
2121
{% if item.socket is defined %}
2222
Socket "{{ item.socket }}"
2323
{% endif %}
24-
InnodbStats {{ item.innodb_stats | default('true') }}
25-
MasterStats {{ item.master_stats | default('false') }}
26-
MasterStats {{ item.slave_stats | default('false') }}
24+
InnodbStats {{ item.innodb_stats | default(true) | bool | to_json }}
25+
MasterStats {{ item.master_stats | default(false) | bool | to_json }}
26+
MasterStats {{ item.slave_stats | default(false) | bool | to_json }}
2727
</Database>
2828
{% endfor %}
2929
</Plugin>

templates/etc/collectd/collectd.conf.d/network.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin network
44

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin processes

templates/etc/collectd/collectd.conf.d/rrdtool.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin rrdtool
44

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin swap

templates/etc/collectd/collectd.conf.d/tcpconns.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin tcpconns
44

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# {{ ansible_managed }}
1+
{{ ansible_managed | comment }}
22

33
LoadPlugin uptime

0 commit comments

Comments
 (0)