chore: fix syntax for ansible-lint
This commit is contained in:
parent
b865f21bcf
commit
a3138ac6ec
4 changed files with 15 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
telegraf_distribution_release: "{{ ansible_distribution_release }}"
|
||||
telegraf_distribution_release: "{{ ansible_distribution_release }}"
|
||||
telegraf_default_config:
|
||||
agent:
|
||||
interval: 10s
|
||||
|
@ -13,7 +13,7 @@ telegraf_default_config:
|
|||
hostname: ""
|
||||
omit_hostname: false
|
||||
telegraf_config: {}
|
||||
telegraf_full_config: "{{ telegraf_default_config|combine(telegraf_config) }}"
|
||||
telegraf_full_config: "{{ telegraf_default_config | combine(telegraf_config) }}"
|
||||
telegraf_inputs: {}
|
||||
telegraf_outputs: {}
|
||||
telegraf_proxy_ignore: []
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: restart telegraf
|
||||
- name: Restart telegraf
|
||||
ansible.builtin.service:
|
||||
name: telegraf
|
||||
state: restarted
|
||||
|
|
|
@ -6,7 +6,7 @@ galaxy_info:
|
|||
company: Adrien Waksberg
|
||||
description: Install and configure Telegraf
|
||||
license: Apache2
|
||||
min_ansible_version: 2.9
|
||||
min_ansible_version: "2.9"
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
|
|
|
@ -1,56 +1,56 @@
|
|||
---
|
||||
- name: install depencies packages
|
||||
- name: Install depencies packages
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- apt-transport-https
|
||||
- gpg
|
||||
tags: telegraf
|
||||
|
||||
- name: add key for influx repository
|
||||
- name: Add key for influx repository
|
||||
ansible.builtin.apt_key:
|
||||
url: https://repos.influxdata.com/influxdata-archive_compat.key
|
||||
tags: telegraf
|
||||
|
||||
- name: add influx repository
|
||||
- name: Add influx repository
|
||||
ansible.builtin.apt_repository:
|
||||
filename: influx
|
||||
repo: "deb https://repos.influxdata.com/debian {{ telegraf_distribution_release }} stable"
|
||||
tags: telegraf
|
||||
|
||||
- name: install influxdb package
|
||||
- name: Install influxdb package
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- telegraf
|
||||
tags: telegraf
|
||||
|
||||
- name: add groups for telegraf user
|
||||
- name: Add groups for telegraf user
|
||||
ansible.builtin.user:
|
||||
name: telegraf
|
||||
groups: "{{ telegraf_user_groups }}"
|
||||
notify: restart telegraf
|
||||
notify: Restart telegraf
|
||||
tags: telegraf
|
||||
|
||||
- name: copy default variables file
|
||||
- name: Copy default variables file
|
||||
ansible.builtin.template:
|
||||
src: default.j2
|
||||
dest: /etc/default/telegraf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart telegraf
|
||||
notify: Restart telegraf
|
||||
tags: telegraf
|
||||
|
||||
- name: copy config file
|
||||
- name: Copy config file
|
||||
ansible.builtin.template:
|
||||
src: telegraf.conf.j2
|
||||
dest: /etc/telegraf/telegraf.conf
|
||||
owner: root
|
||||
group: telegraf
|
||||
mode: 0640
|
||||
notify: restart telegraf
|
||||
notify: Restart telegraf
|
||||
tags: telegraf
|
||||
|
||||
- name: start and enable service
|
||||
- name: Start and enable service
|
||||
ansible.builtin.service:
|
||||
name: telegraf
|
||||
state: started
|
||||
|
|
Loading…
Reference in a new issue