From cdc6c5aa9405ba7348f997c433e364b816a80c59 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 16 Jul 2020 17:00:05 +0200 Subject: [PATCH] Update to 2020-07-16 17:00 --- roles/ssh/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml index f76c1f7..595d689 100644 --- a/roles/ssh/tasks/main.yml +++ b/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