title: Fatal error at provisioning while installing python
body: <p>I have this playbook:</p>
  
  <pre><code>---
  - hosts: all
    become: yes
    become_user: root
    gather_facts: no
    pre_tasks:
      - name: 'install python2'
        raw: sudo apt-get -y install python-simplejson
    roles:
      - git
      ...
  </code></pre>
  
  <p>Sometimes, it works perfectly fine and sometimes it gives me this error:</p>
  
  <pre><code>==&gt; default: Running provisioner: ansible...
      default: Running ansible-playbook...
  PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i '/var/www/test/.vagrant/machines/default/virtualbox/private_key' -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --connection=ssh --timeout=30 --extra-vars="ansible_ssh_user='ubuntu'" --limit="all" --inventory-file=ansible/hosts/hosts_linux.txt -v ansible/site.yml
  Using /etc/ansible/ansible.cfg as config file
  
  PLAY ***************************************************************************
  
  TASK [install python2] *********************************************************
  fatal: [10.0.11.44]: FAILED! =&gt; {"changed": false, "failed": true, "rc": 255, "stderr": "", "stdout": "", "stdout_lines": []}
  
  PLAY RECAP *********************************************************************
  10.0.11.44                 : ok=0    changed=0    unreachable=0    failed=1   
  
  Ansible failed to complete successfully. Any error output should be
  visible above. Please fix these errors and try again.
  </code></pre>
  
  <p>I am wondering why do I get this error and what does it mean? There is no output on the error and the exactly same code works if I try this many times. It makes no sense. Why is ansible failing to install python?</p>