Fix the Influxdb repo for "hybrid" debian distros (like "jessie/sid")

Use ansible_lsb.codename to set the path to the influxdb repo because "hybrid" distros (when you have testing+unstable, for example) don't work otherwise
This commit is contained in:
Ismael
2016-09-07 18:41:45 -03:00
parent 86fabca61b
commit 9c9dc33ac3

View File

@ -27,7 +27,7 @@
- name: Add Influxdb repository.
apt_repository:
repo: "deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable"
repo: "deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_lsb.codename }} stable"
filename: "influxdb"
state: present
tags: