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 \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