Unverified Commit 9f28f12f authored by Ross McDonald's avatar Ross McDonald Committed by GitHub
Browse files

Merge pull request #16 from schakko/master

[added] support for Fedora >= 27
parents f6c6c5ee 6ef239e2
---
- name: Install any necessary dependencies [RedHat/Fedora]
dnf:
name: "{{ item }}"
state: present
with_items:
- curl
- name: Install any necessary PIP dependencies [RedHat/Fedora]
dnf:
name: "{{ item }}"
state: present
with_items:
- python-pip
when: influxdb_install_python_client
- name: Add InfluxData repository file [RHEL/Fedora]
template:
src: etc/yum.repos.d/influxdata.fedora.repo.j2
dest: /etc/yum.repos.d/influxdata.repo
force: yes
backup: yes
when: influxdb_install_url is not defined or influxdb_install_url == None
- name: Install InfluxDB packages [RHEL/Fedora]
dnf:
name: influxdb
state: present
when: influxdb_install_url is not defined or influxdb_install_url == None
- name: Install InfluxDB from URL [RHEL/Fedora]
dnf:
name: "{{ influxdb_install_url }}"
state: present
when: influxdb_install_url is defined and influxdb_install_url != None
- name: Capture installed InfluxDB version
command: rpm -q influxdb
register: reg_influxdb_version
- debug: var=reg_influxdb_version.stdout_lines
---
- include: install-redhat.yml
when: ansible_os_family == "RedHat"
when: ansible_os_family == "RedHat" and ansible_distribution != "Fedora"
- include: install-fedora.yml
when: ansible_os_family == "RedHat" and ansible_distribution == "Fedora"
- include: install-debian.yml
when: ansible_os_family == "Debian"
......
[influxdb]
name = InfluxDB Repository - {{ ansible_distribution }} $releasever
baseurl = https://repos.influxdata.com/rhel/7Server/$basearch/{{ influxdb_install_version }}
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
sslverify = 1
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment