gce_net and multiple firewall rules

11 views
Skip to first unread message

Peter Mooshammer

unread,
Jan 7, 2015, 4:50:07 PM1/7/15
to ansible...@googlegroups.com
Hi there,


According to this example:
# Simple example of creating a new firewall rule
- local_action:
   
module: gce_net
    name
: privatenet
    fwname
: all-web-webproxy
    allowed
: tcp:80,8080
    src_tags
: ["web", "proxy"]


I should be able to create a network with 2 firewall rules in 1 step. In this example both rules relate to the tcp protocol. Is there a way to define rules for tcp as well as ucp in one line?

Currently I do a with_dict loop .....

thx

Peter
Reply all
Reply to author
Forward
0 new messages