diff --git a/tasks/install.yml b/tasks/install.yml new file mode 100644 index 0000000..60c42fa --- /dev/null +++ b/tasks/install.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..a48ceb8 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,2 @@ +--- +- include_tasks: install.yml