add iptables task
This commit is contained in:
parent
ffd91a9fac
commit
8659c68242
@ -51,6 +51,12 @@
|
|||||||
notify:
|
notify:
|
||||||
- mosquitto_restart
|
- mosquitto_restart
|
||||||
|
|
||||||
|
- name: Open port for mttq
|
||||||
|
iptables_raw:
|
||||||
|
name: allow_mttq_port
|
||||||
|
state: present
|
||||||
|
rules: '-A OUTPUT -m state --state NEW -p tcp --dport {{ mosquitto_port }} -j ACCEPT'
|
||||||
|
|
||||||
- name: Copy systemd unit files
|
- name: Copy systemd unit files
|
||||||
template:
|
template:
|
||||||
src: "etc/systemd/system/mosquitto.service.j2"
|
src: "etc/systemd/system/mosquitto.service.j2"
|
||||||
|
Loading…
Reference in New Issue
Block a user