# Ansible logic misunderstanding ?

**URL:** <https://forum.ansible.com/t/ansible-logic-misunderstanding/12118>\
**Category:** Ansible Project\
**Created:** [December 3, 2012, 10:15pm UTC](https://forum.ansible.com/t/ansible-logic-misunderstanding/12118 "2012-12-03T22:15:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PePe\_Amengual](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@PePe\_Amengual](https://forum.ansible.com/u/PePe_Amengual)\
**Post date:** [December 3, 2012, 10:15pm UTC](https://forum.ansible.com/t/ansible-logic-misunderstanding/12118/1 "2012-12-03T22:15:40Z")

</div>

Hi.

I have this playbook :

---

<div class="post-metadata">

**Author:** ![PePe\_Amengual](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@PePe\_Amengual](https://forum.ansible.com/u/PePe_Amengual)\
**Post date:** [December 4, 2012, 12:11am UTC](https://forum.ansible.com/t/ansible-logic-misunderstanding/12118/2 "2012-12-04T00:11:54Z")

</div>

If I run the playbook this is what it does :

ansible-playbook -vvv test\_dev.yml

PLAY [installing minimal requeriments] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

I change the name of the host, playbook file name and nothing it just doesn’t run again.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [December 4, 2012, 12:13am UTC](https://forum.ansible.com/t/ansible-logic-misunderstanding/12118/3 "2012-12-04T00:13:04Z")

</div>

Your YAML formatting didn't surve the email.

Can you see about posting a gist on github or something similar?

---

<div class="post-metadata">

**Author:** ![PePe\_Amengual](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@PePe\_Amengual](https://forum.ansible.com/u/PePe_Amengual)\
**Post date:** [December 4, 2012, 12:18am UTC](https://forum.ansible.com/t/ansible-logic-misunderstanding/12118/4 "2012-12-04T00:18:48Z")

</div>

is this better ?

[http://pastebin.com/JnKH5Asc](http://pastebin.com/JnKH5Asc)

---

<div class="post-metadata">

**Author:** ![PePe\_Amengual](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@PePe\_Amengual](https://forum.ansible.com/u/PePe_Amengual)\
**Post date:** [December 4, 2012, 12:35am UTC](https://forum.ansible.com/t/ansible-logic-misunderstanding/12118/5 "2012-12-04T00:35:43Z")

</div>

I found the problem 🙂

And then another missing like!!!

the “tasks:” line was missing so I guess ansible doesn’t complain that is not there.

now is running.
