I’m attempting to use the first example on page: http://docs.ansible.com/linode_module.html
⇒ ansible-playbook --version
ansible-playbook 1.7.2
⇒ ansible-playbook -i …/hosts create_web.yml
ERROR: datacenter is not a legal parameter at this level in an Ansible Playbook
⇒ cat create_web.yml
You’re missing indentation. Take a look at the examples on the module page.
Here’s a good explanation: http://yaml.org/spec/current.html#id2519916
Dan,
Thanks for your response. Since you feel my spacing is wrong, please
let me know what is wrong. Proving a link to yaml spacing whitepaper
is not helping. How do you propose that incorrect spacing will result
in the error of "ERROR: datacenter is not a legal parameter at this
level in an Ansible Playbook"? Typically spacing errors result in
something like "ERROR: Syntax Error while loading YAML script".
Michael
Hi Michael,
I’ll provide a short example to prove my point (b11be68249):
`
$ cat whatever.yml
Dan,
The second example worked, thank you for taking the time to resolve
this problem! 