gpgkey yum repo fix

This commit is contained in:
Marcin Wito
2020-05-19 13:40:18 +02:00
parent ea64e9bac4
commit 331ffb7cb5
2 changed files with 3 additions and 2 deletions

View File

@ -73,6 +73,7 @@ telegraf_yum_baseurl:
centos: "https://repos.influxdata.com/rhel/{{ telegraf_redhat_releasever }}/$basearch/stable"
default: "https://repos.influxdata.com/{{ ansible_distribution|lower }}/{{ telegraf_redhat_releasever }}/$basearch/stable"
redhat: "https://repos.influxdata.com/rhel/{{ telegraf_redhat_releasever }}/$basearch/stable"
telegraf_yum_gpgkey: "https://repos.influxdata.com/influxdb.key"
telegraf_win_install_dir: 'C:\Telegraf'
telegraf_win_logfile: 'C:\\Telegraf\\telegraf.log'

View File

@ -18,8 +18,8 @@
name: influxdb
description: InfluxDB Repository - RHEL $releasever
baseurl: "{{ telegraf_yum_baseurl[ansible_distribution|lower] | default(telegraf_yum_baseurl['default']) }}"
gpgcheck: yes
gpgkey: https://repos.influxdata.com/influxdb.key
gpgcheck: "{{ telegraf_yum_gpgcheck | default('true') }}"
gpgkey: "{{ telegraf_yum_gpgkey }}"
become: yes
when:
- telegraf_agent_package_method == "repo"