# gce\_net and multiple firewall rules

**URL:** <https://forum.ansible.com/t/gce-net-and-multiple-firewall-rules/17211>\
**Category:** Ansible Project\
**Created:** [January 7, 2015, 9:50pm UTC](https://forum.ansible.com/t/gce-net-and-multiple-firewall-rules/17211 "2015-01-07T21:50:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Mooshammer](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@Peter\_Mooshammer](https://forum.ansible.com/u/Peter_Mooshammer)\
**Post date:** [January 7, 2015, 9:50pm UTC](https://forum.ansible.com/t/gce-net-and-multiple-firewall-rules/17211/1 "2015-01-07T21:50:07Z")

</div>

Hi there,

According to this example:

`

```auto
# 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
