Is there a way to get the packer ansible-local provisioner to use python3?
I'd prefer to only support one version of python and I don't want to create instant legacy for a particular project by starting it with python2. Also, recent Ubuntu distros come only with python3 installed.
I've tried shell provisioning only with the python3 version of ansible, using pip3, rather than apt or pip. I've tried to get the ansible.cfg transferred to the staging directory with the playbook_dir parameter, and I've tried adding packer extra-vars via extra_arguments key for python_interpreter and ansible_playbook_interpreter.
for vagrant use, I just use `ansible_python_interpreter=/usr/bin/python3` in the [defaults] section of an ansible.cfg in the same directory as the playbook.
Is there any mechanism that _should_ work?