--- all: hosts: localhost: vars: ansible_connection: local ansible_python_interpreter: "{{ansible_playbook_python}}"