From 103f64aa1d5a2c030319baa7a6b3938dfebf99e8 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 2 Aug 2020 19:14:01 -0300 Subject: provision.env.yaml: Stop installing Python 2 Ansible now instead of requiring Python 2 (that being the reason for this piece of code to exist) it complains about using it, and issues a deprecation warning: [DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host arrobaponto.org 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. --- provision.env.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/provision.env.yaml b/provision.env.yaml index 4f98e62..e03969a 100644 --- a/provision.env.yaml +++ b/provision.env.yaml @@ -1,11 +1,4 @@ --- -- hosts: all - any_errors_fatal: true - gather_facts: no - pre_tasks: - - name: Install Python 2 for Ansible fact gathering - raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) - - hosts: all any_errors_fatal: true tasks: -- cgit v1.2.3