[TIDY] Set some "diff: false", fix linter warnings

This commit is contained in:
Jannik Beyerstedt 2023-04-28 23:25:21 +02:00
parent f97ef4dee6
commit fe97b0ae76
19 changed files with 189 additions and 175 deletions

View file

@ -2,17 +2,17 @@
# Server/Telegraf: Install and Setup Telegraf Monitoring
# Install
- name: telegraf - Install telegraf
- name: Telegraf - Install telegraf
ansible.builtin.include_tasks: "{{ item }}"
with_first_found:
- "telegraf-{{ ansible_distribution }}.{{ ansible_distribution_release }}.yml"
- "telegraf-{{ ansible_distribution }}.yml"
- "telegraf-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml"
- "telegraf-{{ (override_os_family is defined) | ternary(override_os_family, ansible_os_family) }}.yml"
# Install SNMP MIBs
- name: telegraf - Install SNMP MIBs
- name: Telegraf - Install SNMP MIBs
when: telegraf_ubnt_ns_ips is defined
become: yes
become: true
block:
- name: SNMP - Download and install Ubiquiti MIB
ansible.builtin.copy:
@ -33,23 +33,23 @@
create: yes
# Configure
- name: telegraf - Copy telegraf config (Linux)
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) != "FreeBSD"
become: yes
- name: Telegraf - Copy telegraf config (Linux)
when: (override_os_family is defined) | ternary(override_os_family, ansible_os_family) != "FreeBSD"
become: true
ansible.builtin.template:
src: "{{ role_path }}/templates/telegraf.conf.j2"
dest: /etc/telegraf/telegraf.conf
- name: telegraf - Copy telegraf config (FreeBSD)
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "FreeBSD"
become: yes
- name: Telegraf - Copy telegraf config (FreeBSD)
when: (override_os_family is defined) | ternary(override_os_family, ansible_os_family) == "FreeBSD"
become: true
ansible.builtin.template:
src: "{{ role_path }}/templates/telegraf.conf.j2"
dest: /usr/local/etc/telegraf.conf
- name: telegraf - Enable and restart telegraf
become: yes
- name: Telegraf - Enable and restart telegraf
become: true
ansible.builtin.service:
name: telegraf
state: restarted
enabled: yes
enabled: true