title: Installing Python via Ansible when no Python version exists on target machine
body: <p>I am attempting to install Python onto a virtual machine (let refer to this as the 'target machine') with <code>ansible-playbook</code>. The target machine has no version of Python installed at all (lightweight Unix version)</p>
  
  <p>From my understanding, most ansible modules will require the target machine to have Python installed on it. However, the raw module does not.</p>
  
  <p>I can't seem to even get the most basic command to work with the raw module, it seems that ansirble is still looking for Python on the target machine. If I manually ssh into the target machine and install Python, then the <code>ansible-playbook</code> begins to work.</p>
  
  <p>Error message:</p>
  
  <pre><code>fatal: [dev]: FAILED! =&gt; 
  {"changed": false, "failed": true,
   "module_stderr": "Shared connection to 192.168.99.100 closed.\r\n",  
   "module_stdout": "/bin/sh: /usr/bin/python: not found\r\n",
   "msg": "MODULE FAILURE", "rc": 0}
  </code></pre>
  
  <p>file <code>/host_vars/dev.yml</code>:</p>
  
  <pre><code>#NOTE: I can manually ssh in with the details without a problem
  ansible_ssh_port: 22
  ansible_user: docker
  ansible_ssh_host: 192.168.99.100
  ansible_ssh_private_key_file: ~/.docker/machine/machines/default/id_rsa
  </code></pre>
  
  <p>file <code>playbook.yml</code>:</p>
  
  <pre><code>- hosts: all
    tasks:
    - name: test the raw module
      raw: echo "Hello World"
  </code></pre>
  
  <p>file <code>hosts</code>:</p>
  
  <pre><code>dev
  </code></pre>
  
  <p>Command I ran:</p>
  
  <pre><code>ansible-playbook -i ./hosts ./playbook.yml
  </code></pre>
  
  <p>Why is the raw command looking for Python?</p>
  
  <p>How can I run command with Ansible without the target machine having Python?</p>