title: Ansible "ansible_python_interpreter" Error
body: <p>I want to instal influxdb and configuration with ansible.
  File copy and influxdb configuration is ok
  But creating database and user create section is give a &quot;ansible_python_interpreter&quot; error.</p>
  <p>I searched this error and tried something but I can't solve this problem with myself</p>
  <p>This is my ansible hosts file</p>
  <pre><code>[loadbalancer]
  lb      ansible_host=192.168.255.134
  
  [loadbalancer:vars]
  ansible_python_interpreter=&quot;/usr/bin/python3&quot;
  #ansible_python_interpreter=&quot;/usr/bin/env python&quot;
  #ansible_python_interpreter=&quot;/usr/libexec/platform-python&quot;
  </code></pre>
  <p>This is my yaml file</p>
  <pre><code># influxdb install and configuration
  
  ---
    - hosts: lb
      become: true
      tasks:
        - name: Copy Repo Files
          copy:
            src: ./files/influxdb.j2
            dest: /etc/yum.repos.d/influxdb.repo
            remote_src: no
        - name: Install Influxdb
          yum:
            name: influxdb
            state: latest
          notify:
               influxdb_ok
        - name: Crete Database
          community.general.influxdb_database:
            hostname: 192.168.255.134
            database_name: deneme
        - name: Create User
          community.general.influxdb_user:
            user_name: deneme_user
            user_password: deneme123
  
      handlers:
        - name: Start Influx Service
          service:
            name: influxdb
            state: started
            enabled: yes
          listen: influxdb_ok
  </code></pre>
  <p>I was tried to install python3 remote vm(lb).
  I was tried to change interpreter parameters.
  I was tried to install requests module with pip3.</p>
  <pre><code>[root@centos8 influx]# ansible-playbook influxdb.yaml -K
  BECOME password:
  
  PLAY [lb] ***********************************************************************************************************
  
  TASK [Gathering Facts] **********************************************************************************************
  ok: [lb]
  
  TASK [Copy Repo Files] **********************************************************************************************
  ok: [lb]
  
  TASK [Install Influxdb] *********************************************************************************************
  ok: [lb]
  
  TASK [Crete Database] ***********************************************************************************************
  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'requests'
  fatal: [lb]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Failed to import the required Python library (requests) on loadbalancer.servicepark.local's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter&quot;}
  
  PLAY RECAP **********************************************************************************************************
  lb                         : ok=3    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
  </code></pre>
  <p>I was tried to install requests module and currently ansible version</p>
  <p>Right now my ansible machine versions</p>
  <pre><code>[root@centos8 influx]# python3 --version
  Python 3.6.8
  [root@centos8 influx]# ansible --version
  ansible 2.10.1
    config file = /etc/ansible/ansible.cfg
    configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
    executable location = /usr/bin/ansible
    python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
  </code></pre>
  <p>lb vm's versions</p>
  <pre><code>[root@loadbalancer ~]# influx --version
  InfluxDB shell version: 1.8.2
  [root@loadbalancer ~]# python3 --version
  Python 3.6.8
  </code></pre>