From c707107e1b56ce069f694dec588a47ddc4c51006 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Thu, 13 Nov 2014 15:27:10 -0600 Subject: [PATCH] fix gce_net add firewall rule example --- lib/ansible/modules/cloud/google/gce_net.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/cloud/google/gce_net.py b/lib/ansible/modules/cloud/google/gce_net.py index c2c0b30452d..102a73f2bd1 100644 --- a/lib/ansible/modules/cloud/google/gce_net.py +++ b/lib/ansible/modules/cloud/google/gce_net.py @@ -35,7 +35,7 @@ options: description: - the protocol:ports to allow ('tcp:80' or 'tcp:80,443' or 'tcp:80-800') required: false - default: null + default: null aliases: [] ipv4_range: description: @@ -101,15 +101,16 @@ author: Eric Johnson EXAMPLES = ''' # Simple example of creating a new network -- local_action: +- local_action: module: gce_net name: privatenet ipv4_range: '10.240.16.0/24' - + # Simple example of creating a new firewall rule -- local_action: +- local_action: module: gce_net name: privatenet + fwname: all-web-webproxy allowed: tcp:80,8080 src_tags: ["web", "proxy"]