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’