mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Merge pull request #74 from dj-wasabi/move-to-json-to-to_json
Renamed the tojson to to_json
This commit is contained in:
@ -42,9 +42,11 @@ platforms:
|
||||
networks:
|
||||
- name: telegraf
|
||||
- name: telegraf-opensuse
|
||||
image: reszelaz/leap-systemd
|
||||
image: wdijkerman/molecule-systemd-leap
|
||||
privileged: True
|
||||
command: /sbin/init
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
groups:
|
||||
- telegraf
|
||||
networks:
|
||||
|
@ -24,6 +24,7 @@
|
||||
repo: "http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Factory/"
|
||||
name: The Go Programming Language (openSUSE_Factory)
|
||||
state: present
|
||||
runrefresh: True
|
||||
auto_import_keys: True
|
||||
become: yes
|
||||
|
||||
|
@ -97,10 +97,10 @@
|
||||
{% if item.objects is defined and item.objects is iterable %}
|
||||
{% for object in item.objects %}
|
||||
[[inputs.{{ item.plugin }}.object]]
|
||||
ObjectName = {{ object.name | tojson }}
|
||||
ObjectName = {{ object.name | to_json }}
|
||||
Instances = {{ object.instances | default(["*"]) }}
|
||||
Counters = {{ object.counters | default(["*"]) }}
|
||||
Measurement = {{ object.measurement | default("win_perf_counters") | tojson }}
|
||||
Measurement = {{ object.measurement | default("win_perf_counters") | to_json }}
|
||||
IncludeTotal = {{ object.total | default(false) | string | lower }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user