add repo and install packages

This commit is contained in:
Robert Kaussow 2017-12-16 21:33:26 +01:00
parent 31a9e18843
commit 44fab64724
2 changed files with 19 additions and 0 deletions

17
tasks/install.yml Normal file
View File

@ -0,0 +1,17 @@
---
- name: Add yum repository
yum_repository:
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
notify: yum_upgrade
- name: Install mttq packages
yum:
name: "{{ item }}"
state: installed
whith_item:
- mosquitto
- mosquitto-clients

2
tasks/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
- include_tasks: install.yml