semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, Bash, Pulumi.
https://semaphoreui.com
MIT License
10.24k stars 1.03k forks source link

Ansible - python 2.x deprecation warning #816

Open d307473 opened 2 years ago

d307473 commented 2 years ago

From the job logs:

...
9:48:03 PM TASK [Gathering Facts] *********************************************************
9:48:05 PM ok: [webserver1]
9:48:05 PM [DEPRECATION WARNING]: Distribution debian 11 on host webserver1 should
9:48:05 PM should use /usr/bin/python3, but is using /usr/bin/python for backward
9:48:05 PM compatibility with prior Ansible releases. A future Ansible release will
9:48:05 PM default to using the discovered platform python for this host. See https://docs
9:48:05 PM .ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for
9:48:05 PM more information. This feature will be removed in version 2.12. Deprecation
9:48:05 PM warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
...

Solution:

docker exec --user root -it semaphore mkdir /etc/ansible docker exec --user root -it semaphore sh -c 'echo -e "[defaults]\ndeprecation_warnings=False" > /etc/ansible/ansible.cfg'

fiftin commented 2 years ago

Hm, I think we should update python )