You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that community.general.ufw doesn't work with the task "Allow all access to SSH, DNS, and WWW".
When playing that task, we see:
TASK [Allow all access to SSH, DNS, and WWW] ********************************************************************************************************************************
failed: [192.168.1.2] (item=SSH) => {"ansible_loop_var": "item", "changed": false, "commands": ["/usr/sbin/ufw status verbose", "/usr/bin/grep -h '^### tuple' /lib/ufw/user.rules /lib/ufw/user6.rules /etc/ufw/user.rules /etc/ufw/user6.rules /var/lib/ufw/user.rules /var/lib/ufw/user6.rules", "/usr/sbin/ufw --version", "/usr/sbin/ufw allow from any to any port SSH"], "item": "SSH", "msg": "ERROR: Bad port 'SSH'\n"}
failed: [192.168.1.2] (item=DNS) => {"ansible_loop_var": "item", "changed": false, "commands": ["/usr/sbin/ufw status verbose", "/usr/bin/grep -h '^### tuple' /lib/ufw/user.rules /lib/ufw/user6.rules /etc/ufw/user.rules /etc/ufw/user6.rules /var/lib/ufw/user.rules /var/lib/ufw/user6.rules", "/usr/sbin/ufw --version", "/usr/sbin/ufw allow from any to any port DNS"], "item": "DNS", "msg": "ERROR: Bad port 'DNS'\n"}
failed: [192.168.1.2] (item=WWW) => {"ansible_loop_var": "item", "changed": false, "commands": ["/usr/sbin/ufw status verbose", "/usr/bin/grep -h '^### tuple' /lib/ufw/user.rules /lib/ufw/user6.rules /etc/ufw/user.rules /etc/ufw/user6.rules /var/lib/ufw/user.rules /var/lib/ufw/user6.rules", "/usr/sbin/ufw --version", "/usr/sbin/ufw allow from any to any port WWW"], "item": "WWW", "msg": "ERROR: Bad port 'WWW'\n"}
failed: [192.168.1.2] (item=WWW Secure) => {"ansible_loop_var": "item", "changed": false, "commands": ["/usr/sbin/ufw status verbose", "/usr/bin/grep -h '^### tuple' /lib/ufw/user.rules /lib/ufw/user6.rules /etc/ufw/user.rules /etc/ufw/user6.rules /var/lib/ufw/user.rules /var/lib/ufw/user6.rules", "/usr/sbin/ufw --version", "/usr/sbin/ufw allow from any to any port WWW Secure"], "item": "WWW Secure", "msg": "ERROR: Wrong number of arguments\n"}
Describe the bug
It seems that
community.general.ufw
doesn't work with the task "Allow all access to SSH, DNS, and WWW".When playing that task, we see:
Proposed fix:
Change
port
intoname
in the task:The text was updated successfully, but these errors were encountered: