Add mqtt hosts

This commit is contained in:
Timo Makinen 2022-10-06 17:33:24 +00:00
parent e7cc5866c8
commit 0f5d63ddc9
3 changed files with 32 additions and 0 deletions

7
group_vars/mqtt.yml Normal file
View 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]}

View 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
View 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