title: Ansible - pip not found
body: <p>I am getting this error:</p>
  
  <pre><code>    TASK [pip] *********************************************************************
      failed: [default] (item=urllib3) =&gt; 
  {"changed": false, "item": "urllib3", 
  "msg": "Unable to find any of pip2, pip to use.  pip needs to be installed."}
  </code></pre>
  
  <p>Upon a suggestion I run following command:</p>
  
  <pre><code>ansible default -a "which pip"
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>default | FAILED | rc=1 &gt;&gt;
  non-zero return code
  </code></pre>
  
  <p>So I guess that means no pip installed. I tried installing pip using:</p>
  
  <pre><code>ansible default -a "easy_install pip"
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>default | FAILED | rc=2 &gt;&gt;
  [Errno 2] No such file or directory
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE</strong>
  In play_local.yaml, I have the following task:</p>
  
  <pre><code>- name: Prepare system
    hosts: default
    become: yes
    gather_facts: false
    pre_tasks:
      - raw: sudo apt-get -y install python python-setuptools python-pip build-essential libssl-dev libffi-dev python-dev easyinstall pip
      - file: path=/etc/sudoers.d/ssh-auth-sock state=touch mode=0440
        #- lineinfile: line='Defaults env_keep += "SSH_AUTH_SOCK"' path=/etc/sudoers.d/ssh-auth-sock
      - replace:
          path: /etc/apt/sources.list
          regexp: 'br.'
          replace: ''
  </code></pre>
  
  <p>Shouldn't this task install pip?</p>