title: Ansible: Change python interpeter when delegating to
body: <p>I am running some plays on host A.</p>
  
  <p>There are some other plays that need to run on host B (Ubuntu 16.04) that however ships only with python3, therefore the following task </p>
  
  <pre><code>- name: db_config -&gt; Create MY database
    mysql_db:
      ...create some db
    delegate_to: "{{ ec2_instance_ip }}"
  </code></pre>
  
  <p>fails with:</p>
  
  <blockquote>
    <p>failed: [localhost -> 33.99.123.88] => {"changed": false, "module_stderr": "Shared connection to 33.99.123.88 closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 127}</p>
  </blockquote>
  
  <p>How can I change python interpeter <strong>only</strong> for the delegated tasks, as the one above?</p>