[TIDY] Update to ansible 4 module names
This commit is contained in:
parent
3c1939f431
commit
a2fc598416
19 changed files with 89 additions and 89 deletions
|
|
@ -3,22 +3,22 @@
|
|||
|
||||
- name: telegraf - Install apt-transport-https
|
||||
become: yes
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
- name: telegraf - Add telegraf repo key
|
||||
become: yes
|
||||
apt_key:
|
||||
ansible.builtin.apt_key:
|
||||
url: https://repos.influxdata.com/influxdb.key
|
||||
state: present
|
||||
- name: telegraf - Add telegraf repo
|
||||
become: yes
|
||||
apt_repository:
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable"
|
||||
state: present
|
||||
- name: telegraf - Install telegraf
|
||||
become: yes
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: telegraf
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
# Install SNMP utilities for telegraf monitoring
|
||||
- name: telegraf - Install SNMP utilities
|
||||
become: yes
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
vars:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue