mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Need to pull RHEL packages for Fedora
It seems Influxdb does not provide packages for Fedora. Thus the package repository URL needs to be hard coded to RHEL7 if run from Fedora. This change recognises we are on Fedora, and fakes RHEL release to be 7 so URL gets right.
This commit is contained in:
@ -7,6 +7,11 @@
|
||||
when:
|
||||
- telegraf_agent_package_state != "latest"
|
||||
|
||||
- name: Use RHEL 7 packages for Fedora
|
||||
set_fact:
|
||||
telegraf_redhat_releasever: 7
|
||||
when: ansible_distribution == "Fedora"
|
||||
|
||||
- name: "RedHat | Add yum repository"
|
||||
yum_repository:
|
||||
name: influxdb
|
||||
|
Reference in New Issue
Block a user