# linode\_module not working

**URL:** <https://forum.ansible.com/t/linode-module-not-working/17776>\
**Category:** Ansible Project\
**Created:** [March 18, 2015, 6:38pm UTC](https://forum.ansible.com/t/linode-module-not-working/17776 "2015-03-18T18:38:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Bushey](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Post date:** [March 18, 2015, 6:38pm UTC](https://forum.ansible.com/t/linode-module-not-working/17776/1 "2015-03-18T18:38:02Z")

</div>

I’m attempting to use the first example on page: [http://docs.ansible.com/linode\_module.html](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

---

<div class="post-metadata">

**Author:** ![vaida.dan](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Post date:** [March 22, 2015, 8:53pm UTC](https://forum.ansible.com/t/linode-module-not-working/17776/2 "2015-03-22T20:53:57Z")

</div>

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](http://yaml.org/spec/current.html#id2519916)

---

<div class="post-metadata">

**Author:** ![Michael\_Bushey](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Post date:** [March 23, 2015, 5:14pm UTC](https://forum.ansible.com/t/linode-module-not-working/17776/3 "2015-03-23T17:14:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vaida.dan](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Post date:** [March 23, 2015, 5:59pm UTC](https://forum.ansible.com/t/linode-module-not-working/17776/4 "2015-03-23T17:59:16Z")

</div>

Hi Michael,

I’ll provide a short example to prove my point (b11be68249):

`

$ cat whatever.yml

---

<div class="post-metadata">

**Author:** ![Michael\_Bushey](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Post date:** [March 23, 2015, 8:57pm UTC](https://forum.ansible.com/t/linode-module-not-working/17776/5 "2015-03-23T20:57:21Z")

</div>

Dan,

The second example worked, thank you for taking the time to resolve  
this problem! 🙂
