mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 18:03:40 -05:00
build: update dependencies
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# yamllint disable rule:indentation
|
||||
---
|
||||
# TASK DESCRIPTION:
|
||||
# Downloads, installs, and configures Telegraf
|
||||
@@ -206,7 +207,7 @@
|
||||
|
||||
- name: "Configure Telegraf"
|
||||
block:
|
||||
- name: "Ensure {{ telegraph_config_location }} exists"
|
||||
- name: "Ensure {{ telegraph_config_location }} exists" # noqa: name[template]
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
@@ -223,10 +224,22 @@
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "644"
|
||||
loop:
|
||||
- { src: "telegraf/base_config.conf.j2", dest: "{{ telegraph_config_location }}/telegraf.conf" }
|
||||
- { src: "telegraf/custom_metrics.conf.j2", dest: "{{ telegraph_config_location }}/telegraf.d/custom_metrics.conf" }
|
||||
- { src: "telegraf/nomad.conf.j2", dest: "{{ telegraph_config_location }}/telegraf.d/nomad.conf" }
|
||||
- { src: "telegraf/docker.conf.j2", dest: "{{ telegraph_config_location }}/telegraf.d/docker.conf" }
|
||||
- {
|
||||
src: "telegraf/base_config.conf.j2",
|
||||
dest: "{{ telegraph_config_location }}/telegraf.conf",
|
||||
}
|
||||
- {
|
||||
src: "telegraf/custom_metrics.conf.j2",
|
||||
dest: "{{ telegraph_config_location }}/telegraf.d/custom_metrics.conf",
|
||||
}
|
||||
- {
|
||||
src: "telegraf/nomad.conf.j2",
|
||||
dest: "{{ telegraph_config_location }}/telegraf.d/nomad.conf",
|
||||
}
|
||||
- {
|
||||
src: "telegraf/docker.conf.j2",
|
||||
dest: "{{ telegraph_config_location }}/telegraf.d/docker.conf",
|
||||
}
|
||||
notify: restart_telegraf
|
||||
|
||||
- name: Template leader configs (ie, configs that should be placed on a single server)
|
||||
@@ -236,9 +249,18 @@
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "644"
|
||||
loop:
|
||||
- { src: "telegraf/leader.conf.j2", dest: "{{ telegraph_config_location }}/telegraf.d/leader.conf" }
|
||||
- { src: "telegraf/speedtest.conf.j2", dest: "{{ telegraph_config_location }}/telegraf.d/speedtest.conf" }
|
||||
- { src: "telegraf/pingHosts.conf.j2", dest: "{{ telegraph_config_location }}/telegraf.d/pingHosts.conf" }
|
||||
- {
|
||||
src: "telegraf/leader.conf.j2",
|
||||
dest: "{{ telegraph_config_location }}/telegraf.d/leader.conf",
|
||||
}
|
||||
- {
|
||||
src: "telegraf/speedtest.conf.j2",
|
||||
dest: "{{ telegraph_config_location }}/telegraf.d/speedtest.conf",
|
||||
}
|
||||
- {
|
||||
src: "telegraf/pingHosts.conf.j2",
|
||||
dest: "{{ telegraph_config_location }}/telegraf.d/pingHosts.conf",
|
||||
}
|
||||
when:
|
||||
- is_cluster_leader
|
||||
notify: restart_telegraf
|
||||
|
||||
Reference in New Issue
Block a user