Add mqtt hosts
This commit is contained in:
parent
e7cc5866c8
commit
0f5d63ddc9
3 changed files with 32 additions and 0 deletions
7
group_vars/mqtt.yml
Normal file
7
group_vars/mqtt.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 443, from: [172.20.27.0/24]}
|
||||
- {proto: tcp, port: 1883, from: [172.20.27.0/24]}
|
||||
- {proto: tcp, port: 4949, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 8883, from: [172.20.20.0/22, 172.20.27.0/24]}
|
11
host_vars/mqtt02.home.foo.sh.yml
Normal file
11
host_vars/mqtt02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
vmhost: vmhost02.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: vio0
|
||||
vlan: 20
|
||||
mac: 52:54:00:ac:dc:70
|
||||
- device: vio1
|
||||
vlan: 27
|
||||
ipaddr: 172.20.27.3
|
||||
netmask: 255.255.255.0
|
||||
proto: static
|
14
playbooks/mqtt.yml
Normal file
14
playbooks/mqtt.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=mqtt"
|
||||
|
||||
- name: configure instance
|
||||
hosts: mqtt
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
roles:
|
||||
- base
|
||||
- mosquitto
|
||||
- nginx/server
|
||||
- role: nginx/site
|
||||
site: iot.foo.sh
|
Loading…
Add table
Reference in a new issue