Hi, I'd like to ask for advice on configuring Ansible to prioritize using a specific Python interpreter if it exists or automatically discover the appropriate Python interpreter if the preferred one is not present, especially in cases where the preferred interpreter does not exist initially. As an example, I want to install and use /usr/bin/python3 in an environment where only /usr/bin/python exists by default.
Ideally, I would like to define this behavior in the inventory file (inventory.ini), so that Ansible would use /usr/bin/python3 if available, and fall back to automatic discovery otherwise. How can I achieve this? Are there any recommended configurations or best practices for this scenario? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/177b2f57-724e-482d-a688-c5c3f85f84e9n%40googlegroups.com.