Created
September 8, 2016 14:23
-
-
Save evrardjp/f07333c702812117f5a979774fa0815c to your computer and use it in GitHub Desktop.
os_network on RAX usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[iad] | |
evrardjp-lab-1 | |
evrardjp-lab-2 | |
evrardjp-lab-3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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