I checked that with the YAML Lint and after adding/removing a couple of 
spaces...

- os_server_facts:
    server: W1
-  debug:
    var: openstack_servers

 
...it doesn't return a YAML syntax error, but:

admin:~/temp <admin@host-160-46-99-249:~/temp>> ansible-playbook -i oshost 
os_server_facts.yml -vvvv
Using /home/admin/.ansible.cfg as config file
ERROR! 'os_server_facts' is not a valid attribute for a Play
The error appears to have been in '/home/admin/temp/os_server_facts.yml': 
line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:

- os_server_facts:
  ^ here

'os_server_facts' is not a valid attribute?? The os_server_facts module 
exists in 2.0 as far I can see: 
/usr/lib/python2.7/site-packages/ansible/modules/core/cloud/openstack/os_server_facts.py

Should I open an issue ticket?


Stavros

-- 
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/60b6659c-43e7-4011-aab2-0cd9a70728c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to