Having a hell of a time getting UFW to play nicely. Here's what I've got:
Each role (in this case the role is "common", part of our baseline role) has a ufw.yml task file that gets imported to main.yml:
---
- name: Configure UFW for baseline access
ufw:
rule=allow
from_ip={{ item.ip }}
to_port={{ item.port }}
state=enabled
with_items:
- { ip: bellevue_office_ip, port: "any" }
sudo: yes
Now there's two problems-
For the with_items entries that have a non-variable value for ip, those lines return "Error: Could not find protocol"
For the line that uses the bellevue_office_ip variable, that line returns: "Error: Bad source address"
What am I missing? I can probably get away from trying to use variables in the with_items loop but boy I'd sure love to use it. The protocol thing though I have no idea, I don't know why that'd be choking me up.
Thanks for any help,
Lars