From b014c09a2c18664c1cd61e29209e665262f1ff53 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 7 Jul 2021 12:22:00 +0300 Subject: [PATCH] ansible.cfg: Use auto discovery of Python interpreter Uses a built-in table of OSes and Python versions to decide which Python interpreter to use. This is better than hard coding python3 in every single host's host_vars. See: https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html --- ansible.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible.cfg b/ansible.cfg index 37a5290..5a5f778 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -5,6 +5,7 @@ inventory=hosts # instead of using --ask-vault-pass ask_vault_pass=True remote_user = provisioning +interpreter_python=auto ansible_managed = This file is managed by Ansible.%n template: {file}