# Ansible only completing first task in playbook

**URL:** <https://forum.ansible.com/t/ansible-only-completing-first-task-in-playbook/24515>\
**Category:** Ansible Project\
**Created:** [May 18, 2017, 3:25pm UTC](https://forum.ansible.com/t/ansible-only-completing-first-task-in-playbook/24515 "2017-05-18T15:25:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JK1](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@JK1](https://forum.ansible.com/u/JK1)\
**Post date:** [May 18, 2017, 3:25pm UTC](https://forum.ansible.com/t/ansible-only-completing-first-task-in-playbook/24515/1 "2017-05-18T15:25:29Z")

</div>

So Initially I thought that I had a rogue playbook but now I am finding that Ansible is only executing the first task in any playbook. For role below only first task is completed but no errors are given even with -v -vv or -vvv. --list-tasks lists all tasks and if I comment first task out then second one runs fine. I have tried uninstalling and reinstalling Ansible and verified /etc/ansible/ansible.cfg. No joy I am on CentOS 7.3 ansible-2.3.0.0-3.el7.noarch

- name: ensure file exists  
file:  
path: /etc/modprobe.d/blacklist.conf  
state: touch  
mode: 0755

- name: ensure blacklist line is in file  
lineinfile:  
path: /etc/modprobe.d/blacklist.conf  
regexp: ‘^blacklist\ usb-storage’  
state: present  
line: ‘blacklist usb-storage’
