Hi all,

I have successfully managed to deploy some cloud servers with ansible 2.0 
on openstack, but seem to get stuck on creating the network.

State should not be required according 
to http://docs.ansible.com/ansible/os_network_module.html.

When i comment out the state parameter i get:

TASK [os_network : OpenStack | create network] 
*********************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, 
"module_stderr": "", "module_stdout": "Traceback (most recent call 
last):\r\n  File 
\"/root/.ansible/tmp/ansible-tmp-1461078444.28-238290358250568/os_network\", 
line 2144, in <module>\r\n    main()\r\n  File 
\"/root/.ansible/tmp/ansible-tmp-1461078444.28-238290358250568/os_network\", 
line 78, in main\r\n    state = module.params['state']\r\nKeyError: 
'state'\r\n", "msg": "MODULE FAILURE", "parsed": false}


And when i uncomment the state parameter i get:

TASK [os_network : OpenStack | create network] 
*********************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": 
"unsupported parameter for module: state"}



My ansible role looks like:

---

- name: OpenStack | create network
  os_network:
    cloud: testing
    state: present
    name: "{{ private_net_name }}"
  register: mynetwork



Any help or ideas would greatly be appreciated!

Greets,
Cees

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/54713e00-d04d-4628-8e7d-b00b311d291c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to