Skip to content

Instantly share code, notes, and snippets.

@Sonique
Created July 23, 2018 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sonique/6afe438b9aa66166e576dbe08f20191f to your computer and use it in GitHub Desktop.
Save Sonique/6afe438b9aa66166e576dbe08f20191f to your computer and use it in GitHub Desktop.
Ansible: use any python version for ansible_python_interpreter
[nodes:vars]
ansible_python_interpreter = ls /usr/bin/ | grep -E "^python([2-3](.[0-9])?)?$" | head -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment