mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Fedora dnf breaks with yum module.
Fedora uses dnf instead of yum. If this change is not made, playbook fails with: fatal: [xx.yy]: FAILED! => {"changed": false, "msg": "The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead."}
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
gpgkey: https://repos.influxdata.com/influxdb.key
|
||||
|
||||
- name: "RedHat | Install telegraf package"
|
||||
yum:
|
||||
package:
|
||||
name: "{{ telegraf_agent_package }}"
|
||||
state: "{{ telegraf_agent_package_state }}"
|
||||
notify: "Restart Telegraf"
|
||||
|
Reference in New Issue
Block a user