add extra packages variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-08-06 21:24:37 +02:00
parent cd4dad6047
commit 940e35da5b
4 changed files with 7 additions and 14 deletions

View File

@ -2,15 +2,9 @@
- name: Converge - name: Converge
hosts: all hosts: all
vars: vars:
yum_repositories: mosquitto_packages_extra:
epel: - epel-release
filename: Extra-EPEL
desc: Extra Packages for Enterprise Linux (EPEL)
baseurl: "http://download.fedoraproject.org/pub/epel/$releasever/$basearch/"
gpgkey: "http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-$releasever/"
enabled: True
mosquitto_bind_address: "127.0.0.1" mosquitto_bind_address: "127.0.0.1"
roles: roles:
- role: xoxys.yum
- role: xoxys.mosquitto - role: xoxys.mosquitto

View File

@ -1,5 +0,0 @@
---
- src: https://gitea.rknet.org/ansible/xoxys.yum.git
name: xoxys.yum
scm: git
version: master

View File

@ -2,8 +2,9 @@
- block: - block:
- name: Install mqtt packages - name: Install mqtt packages
package: package:
name: mosquitto name: "{{ item }}"
state: present state: present
loop: "{{ mosquitto_packages_extra + __mosquitto_packages }}"
- name: Create group '{{ mosquitto_group }}' - name: Create group '{{ mosquitto_group }}'
group: group:

3
vars/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
__mosquitto_packages:
- mosquitto