Migrate set_fact to FQCN.

This commit is contained in:
me
2026-10-02 11:23:31 -07:00
parent ab09a74bf2
commit b306064061
41 changed files with 150 additions and 150 deletions
+6 -6
View File
@@ -5,7 +5,7 @@
# Variables #
- name: General | Telegraf | Variables 1/4
set_fact:
ansible.builtin.set_fact:
telegraf_tar: telegraf-1.20.3_linux_amd64.tar.gz
telegraf_path: /usr/local/bin
telegraf_config_path: /usr/local/etc
@@ -13,25 +13,25 @@
telegraf_log: "{{ user_ansible.home }}/telegraf.log"
- name: General | Telegraf | Variables 2/4
set_fact:
ansible.builtin.set_fact:
telegraf_exec: "{{ telegraf_path }}/telegraf"
telegraf_config: "{{ telegraf_config_path }}/telegraf.conf"
- name: General | Telegraf | Variables 3/4
set_fact:
ansible.builtin.set_fact:
telegraf_cmd: "{{ telegraf_exec }} --config {{ telegraf_config }} >> {{ telegraf_log }} 2>&1"
- name: General | Telegraf | Variables 4/4
set_fact:
ansible.builtin.set_fact:
telegraf_watcher: "killall telegraf; {{ telegraf_cmd }}"
- name: General | Telegraf | Variables | Linux
set_fact:
ansible.builtin.set_fact:
telegraf_input_temp: "[[inputs.temp]]"
when: ansible_system == "Linux"
- name: General | Telegraf | Variables | FreeBSD
set_fact:
ansible.builtin.set_fact:
telegraf_input_temp: ""
when: ansible_system == "FreeBSD"