Add Ansible module test for networks

Change-Id: I4e5a452de5952d8fa48bfa1831ac803642fc6ec5
This commit is contained in:
David Shrewsbury
2015-07-08 14:38:28 -04:00
parent bfa1955e57
commit 8a2db7ba3f
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
- name: Create network
os_network:
cloud: "{{ cloud }}"
name: "{{ network_name }}"
state: present
- name: Delete network
os_network:
cloud: "{{ cloud }}"
name: "{{ network_name }}"
state: absent

View File

@@ -0,0 +1 @@
network_name: shade_network

View File

@@ -6,3 +6,4 @@
roles:
- { role: keypair, tags: keypair }
- { role: security_group, tags: security_group }
- { role: network, tags: network }