Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to work with Fedora Linux #78

Merged
merged 2 commits into from
Dec 17, 2018
Merged

Conversation

ikke-t
Copy link
Contributor

@ikke-t ikke-t commented Dec 16, 2018

Description of PR
Fix role to work on Fedora Linux.

Type of change
Feature Pull Request

Fixes an issue
No issue made, I fixed and tested this with my Fedora 29. Works good both on my RHEL7 and Fedora 29 now.

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."}
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.
@ikke-t ikke-t changed the title Fedora dnf Fix to work with Fedora Linux Dec 16, 2018
@dj-wasabi dj-wasabi merged commit d49c278 into dj-wasabi:master Dec 17, 2018
@dj-wasabi
Copy link
Owner

Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants