mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Merge pull request #127 from wingcon/master
made service status configurable
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
telegraf_enabled: True
|
||||||
# defaults file for ansible-telegraf
|
# defaults file for ansible-telegraf
|
||||||
|
|
||||||
telegraf_agent_version: 1.10.0
|
telegraf_agent_version: 1.10.0
|
||||||
|
@ -124,8 +124,8 @@
|
|||||||
- name: "Start Telegraf (If it wasn't running)"
|
- name: "Start Telegraf (If it wasn't running)"
|
||||||
service:
|
service:
|
||||||
name: telegraf
|
name: telegraf
|
||||||
state: started
|
state: "{{ telegraf_enabled | ternary('started', 'stopped') }}"
|
||||||
enabled: yes
|
enabled: "{{ telegraf_enabled }}"
|
||||||
become: yes
|
become: yes
|
||||||
when: not telegraf_agent_docker
|
when: not telegraf_agent_docker
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user