From 3ae4809fb1943946f18584f3dc86815f4c6f9ad9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 18 Dec 2017 11:53:40 +0100 Subject: [PATCH] dynamic centos verison discover for repos --- tasks/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index f09c487..206742b 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -4,8 +4,8 @@ name: mttq file: mttq description: MTTQ Broker - baseurl: http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-7/ - gpgkey: http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-7/repodata/repomd.xml.key + baseurl: "http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-{{ ansible_distribution_major_version }}/" + gpgkey: "http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-{{ ansible_distribution_major_version }}/repodata/repomd.xml.key" - name: Install mttq packages yum: