From e863dcc92ae5f1130f627d54d57f06ffab7fce10 Mon Sep 17 00:00:00 2001 From: Onni Hakala Date: Fri, 12 Aug 2016 09:01:01 +0300 Subject: [PATCH] Added example to add a port range (#2712) I tried to google for this a bit and then figured out how it actually works. --- lib/ansible/modules/extras/system/ufw.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/system/ufw.py b/lib/ansible/modules/extras/system/ufw.py index 6b7fb6a765..c70f51f88b 100644 --- a/lib/ansible/modules/extras/system/ufw.py +++ b/lib/ansible/modules/extras/system/ufw.py @@ -153,6 +153,9 @@ ufw: rule=allow name=OpenSSH delete=yes # Deny all access to port 53: ufw: rule=deny port=53 +# Allow port range 60000-61000 +ufw: rule=allow port=60000:61000 + # Allow all access to tcp port 80: ufw: rule=allow port=80 proto=tcp