add repo and install packages
This commit is contained in:
parent
31a9e18843
commit
44fab64724
17
tasks/install.yml
Normal file
17
tasks/install.yml
Normal 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
2
tasks/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
- include_tasks: install.yml
|
Loading…
Reference in New Issue
Block a user