I see. I found a workaround using `with_subelements`:
Now I have:
ufw_open_docker_from_sources:
- {port: 8500, src: "{{ groups.all_consuls }}"}
- {port: 8301, src: "{{ groups.all_consuls }}"}
in my group_vars file. This way, I have all hosts from the group as a list
in my `src` attribute.
no, you cannot use jinja to generate tasks on the fly.
you should look into the different lookups as you can combine them to
create what you need in a single task.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscri
Hi! I'm trying to implement firewall rules management with ufw module. Idea
is to have list of ports to be accessable from sources somewhere in host
variables. For example, I have this in my group_vars/consul_servers:
ufw_open_docker_from_sources:
- {port: 8500, src: consul_agents}
- {port