openSUSE / ansible-obs

Some playbooks to operate OBS
1 stars 10 forks source link

Use Python 3, instead of the default of the machine #4

Closed eduardoj closed 3 years ago

eduardoj commented 3 years ago

Let's try with Python 3, and only fall back explicitly to Python 2 if some playbook cannot be run.

This also prevents this warning from appearing on each ansible run:

[WARNING]: Platform linux on host obs is using the discovered Python interpreter at /usr/bin/python,
but future installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.