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
|
||||
|
||||
telegraf_agent_version: 1.10.0
|
||||
|
@ -124,8 +124,8 @@
|
||||
- name: "Start Telegraf (If it wasn't running)"
|
||||
service:
|
||||
name: telegraf
|
||||
state: started
|
||||
enabled: yes
|
||||
state: "{{ telegraf_enabled | ternary('started', 'stopped') }}"
|
||||
enabled: "{{ telegraf_enabled }}"
|
||||
become: yes
|
||||
when: not telegraf_agent_docker
|
||||
|
||||
|
Reference in New Issue
Block a user