From ca877801192d931ab97aff863e2dab7c608b88b2 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 30 May 2019 22:34:06 +0000 Subject: [PATCH] ansible: try and move the ansible_python_interpreter setting to group_vars/all Signed-off-by: Kevin Fenzi --- inventory/group_vars/all | 5 +++++ roles/ansible-server/templates/ansible.cfg.j2 | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/inventory/group_vars/all b/inventory/group_vars/all index eceff6477e..622c6d8bf9 100644 --- a/inventory/group_vars/all +++ b/inventory/group_vars/all @@ -314,3 +314,8 @@ redirectmatch_enabled: True # sshd can run a internal sftp server, we need this on some hosts, but # not on most of them, so default to false sshd_sftp: false + +# +# Autodetect python version +# +ansible_python_interpreter: auto diff --git a/roles/ansible-server/templates/ansible.cfg.j2 b/roles/ansible-server/templates/ansible.cfg.j2 index e3962303e6..14bc86d231 100644 --- a/roles/ansible-server/templates/ansible.cfg.j2 +++ b/roles/ansible-server/templates/ansible.cfg.j2 @@ -29,10 +29,6 @@ forks = 150 #module_lang = C #module_set_locale = False -# auto detect the python to use on targets based on table, -# then searching a python path for one. -interpreter_python=auto - # plays will gather facts by default, which contain information about # the remote system. #