Fix variable inheritance.
This commit is contained in:
parent
2e1d745582
commit
bd297833a2
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Variables #
|
# Variables #
|
||||||
|
|
||||||
- name: Server | Telegraf | Variables 1/3
|
- name: Server | Telegraf | Variables 1/4
|
||||||
set_fact:
|
set_fact:
|
||||||
telegraf_tar: telegraf-1.18.0_linux_amd64.tar.gz
|
telegraf_tar: telegraf-1.18.0_linux_amd64.tar.gz
|
||||||
telegraf_config_path: /usr/local/etc
|
telegraf_config_path: /usr/local/etc
|
||||||
@ -12,12 +12,15 @@
|
|||||||
telegraf_user: "{{ user_ansible.name }}"
|
telegraf_user: "{{ user_ansible.name }}"
|
||||||
telegraf_log: "{{ user_ansible.home }}/telegraf.log"
|
telegraf_log: "{{ user_ansible.home }}/telegraf.log"
|
||||||
|
|
||||||
- name: Server | Telegraf | Variables 2/3
|
- name: Server | Telegraf | Variables 2/4
|
||||||
set_fact:
|
set_fact:
|
||||||
telegraf_config: "{{ telegraf_config_path }}/telegraf.conf"
|
telegraf_config: "{{ telegraf_config_path }}/telegraf.conf"
|
||||||
|
|
||||||
|
- name: Server | Telegraf | Variables 3/4
|
||||||
|
set_fact:
|
||||||
telegraf_cmd: "{{ telegraf_exec }} --config {{ telegraf_config }} >> {{ telegraf_log }} 2>&1"
|
telegraf_cmd: "{{ telegraf_exec }} --config {{ telegraf_config }} >> {{ telegraf_log }} 2>&1"
|
||||||
|
|
||||||
- name: Server | Telegraf | Variables 3/3
|
- name: Server | Telegraf | Variables 4/4
|
||||||
set_fact:
|
set_fact:
|
||||||
telegraf_restart: "killall telegraf; {{ telegraf_cmd }}"
|
telegraf_restart: "killall telegraf; {{ telegraf_cmd }}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user