add iptables task

This commit is contained in:
Robert Kaussow 2017-12-17 14:20:03 +01:00
parent ffd91a9fac
commit 8659c68242
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@
notify:
- 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
template:
src: "etc/systemd/system/mosquitto.service.j2"