Skip to content

Commit c67e685

Browse files
committed
chore: fix a warning from Ansible about Python interpeter discovery by explicitly specifying it
The warning was: [DEPRECATION WARNING]: Distribution Ubuntu 16.04 on host my-stamps.ru should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. Fix #1192
1 parent 725ef9e commit c67e685

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
# Ansible inventory file
22
# See: https://docs.ansible.com/ansible/2.9/user_guide/intro_inventory.html
3+
4+
[prod]
35
my-stamps.ru
6+
7+
[all:vars]
8+
# https://docs.ansible.com/ansible/2.9/reference_appendices/python_3_support.html#using-python-3-on-the-managed-machines-with-commands-and-playbooks
9+
# https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
10+
ansible_python_interpreter=/usr/bin/python3

0 commit comments

Comments
 (0)