Skip to content

Instantly share code, notes, and snippets.

@evrardjp
Created September 8, 2016 14:23
Show Gist options
  • Save evrardjp/f07333c702812117f5a979774fa0815c to your computer and use it in GitHub Desktop.
Save evrardjp/f07333c702812117f5a979774fa0815c to your computer and use it in GitHub Desktop.
os_network on RAX usage
[iad]
evrardjp-lab-1
evrardjp-lab-2
evrardjp-lab-3
--
- hosts: all
connection: local
pre_tasks:
- debug:
msg: "{{ region_name }}"
- name: Create network
os_network:
name: "{{ encapsulation_network | default('encapsulation-net') }}"
state: present
cloud: "{{ cloud_name | default('rax') }}"
region_name: "{{ region_name | default(omit) }}"
# external: no
wait: yes
delegate_to: localhost
run_once: True
fatal: [evrardjp-lab-1 -> localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"admin_state_up": true, "api_timeout": null, "auth": null, "auth_type": null, "availability_zone": null, "cacert": null, "cert": null, "cloud": "rax", "endpoint_type": "public", "external": false, "key": null, "name": "encapsulation-net", "provider_network_type": null, "provider_physical_network": null, "provider_segmentation_id": null, "region_name": "IAD", "shared": false, "state": "present", "timeout": 180, "verify": true, "wait": true}, "module_name": "os_network"}, "msg": "Error fetching network list: The resource could not be found.<br /><br />\n\n\n"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment