Hello,

Want I'd like to do is something like that : 

- name: firewalling allow from loadbalancer
  ufw: rule=allow from_ip={{item[1]}} proto=tcp 
to_port={{item[0].value.porthttp}}
  with_nested:
    - my_apps_dict
    - trusted_networks
  tags:
    - ufw

with my_apps_dict looking like :

my_apps_dict:
  app1:
    porthttp: xxx
    ...
  app2:
    porthttp: xxx
    ...
...
...




and  trusted network being a simple list.


I've being searching but to no  avail, any ideas ? 

Thanks



 


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/93c75c09-b60b-4b0b-b3e5-e91b260fa23a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to