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: