Update to 2020-07-16 17:00

master
Daniel Berteaud 4 years ago
parent 2bc37210c8
commit cdc6c5aa94
  1. 2
      roles/ssh/tasks/main.yml

@ -47,7 +47,7 @@
iptables_raw:
name: sshd_ports
state: "{{ (sshd_src_ip is defined and sshd_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state new -p tcp -m multiport --dports {{ sshd_ports | join(',') }} -s {{ sshd_src_ip | join(',') }} -j ACCEPT"
rules: "-A INPUT -m state --state new -p tcp -m multiport --dports {{ sshd_ports | join(',') }} -s {{ sshd_src_ip | flatten | join(',') }} -j ACCEPT"
when: iptables_manage | default(True)
tags: ssh,firewall

Loading…
Cancel
Save