Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@DazWorrall
Created September 16, 2015 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DazWorrall/98da36d1ab3ddc1641da to your computer and use it in GitHub Desktop.
Save DazWorrall/98da36d1ab3ddc1641da to your computer and use it in GitHub Desktop.
- hosts: localhost
gather_facts: false
connection: local
vars:
network_name: My Network
tasks:
- name: Create network
local_action:
module: cs_network
name: "{{ network_name }}"
network_offering: IsolatedNetworkWithRedundantRouterAndLB
- name: Allow ingress icmp
local_action:
module: cs_firewall
type: ingress
protocol: icmp
icmp_type: -1
icmp_code: -1
ip_address: "{{ public_ip }}"
cidr: 0.0.0.0/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment