Hi, This is very odd. I'm unable to reproduce this with Ansible 2.0. Are you using the latest release? Do you have any more verbose output to share, or a complete playbook that reproduced the problem?
-Dave On Tuesday, April 19, 2016 at 11:12:31 AM UTC-4, Cees Moerkerken wrote: > > 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/34dd1ce3-2e72-43de-a91a-20fc781c2521%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
