# Ansible 2.5.1 does not run a task

**URL:** <https://forum.ansible.com/t/ansible-2-5-1-does-not-run-a-task/28411>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [August 24, 2018, 12:36am UTC](https://forum.ansible.com/t/ansible-2-5-1-does-not-run-a-task/28411 "2018-08-24T00:36:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Barlock](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@Chris\_Barlock](https://forum.ansible.com/u/Chris_Barlock)\
**Post date:** [August 24, 2018, 12:36am UTC](https://forum.ansible.com/t/ansible-2-5-1-does-not-run-a-task/28411/1 "2018-08-24T00:36:09Z")

</div>

I just upgraded a set of Ubuntu machines from 16.04.5 to 18.04.1, which now has Ansible 2.5.1 installed. An existing Ansible project that I have seems to skip a step. With verbose mode enabled, I see that it starts the step:

PLAY [master] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

task path: /root/ansible/deploy.yaml:38

and runs Gathering Facts – buts that’s it for this task. It ends with:

\<9.42.2.49\> ESTABLISH SSH CONNECTION FOR USER: root

\<9.42.2.49\> SSH: EXEC sshpass -d17 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/706a93c156 9.42.2.49 ‘/bin/sh -c ‘"’“‘rm -f -r /root/.ansible/tmp/ansible-tmp-1535069761.99-146742452019957/ \> /dev/null 2\>&1 && sleep 0’”’"‘’

\<9.42.2.49\> (0, ‘’, ‘’)

ok: [9.42.2.49]

META: ran handlers

META: ran handlers

META: ran handlers

before moving on to the next PLAY. Any thoughts on why this PLAY does not complete? Quite possibly, there are others that did not complete as expected & I just don’t know it.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 24, 2018, 12:37am UTC](https://forum.ansible.com/t/ansible-2-5-1-does-not-run-a-task/28411/2 "2018-08-24T00:37:52Z")

</div>

can you show the tasks?

---

<div class="post-metadata">

**Author:** ![Chris\_Barlock](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@Chris\_Barlock](https://forum.ansible.com/u/Chris_Barlock)\
**Post date:** [August 24, 2018, 12:54am UTC](https://forum.ansible.com/t/ansible-2-5-1-does-not-run-a-task/28411/3 "2018-08-24T00:54:24Z")

</div>

The tasks from a /tasks/main.yaml:

---

<div class="post-metadata">

**Author:** ![Chris\_Barlock](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@Chris\_Barlock](https://forum.ansible.com/u/Chris_Barlock)\
**Post date:** [August 24, 2018, 2:19pm UTC](https://forum.ansible.com/t/ansible-2-5-1-does-not-run-a-task/28411/4 "2018-08-24T14:19:01Z")

</div>

Well, I rebuilt my Ansible tool and now it behaves properly.
