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:
Ilkka Tengvall
2018-12-16 23:45:47 +02:00
committed by GitHub
parent a4d3eb237c
commit c5e6883c1b

View File

@ -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"