ansible-documentation icon indicating copy to clipboard operation
ansible-documentation copied to clipboard

Update interpreter_discovery for changes made in ansible-core 2.17

Open HarmtH opened this issue 8 months ago • 1 comments
trafficstars

I've updated ansible-core to 2.18, and suddenly got a warning regarding interpreter discovery, which pointed me to this page.

I've read the page and stayed confused why it suddenly happened.

Then I've read the source, and mainly this PR merged in 2.17 changed a lot regarding interpreter discovery.

  • There is no "target OS platform, distribution, and version" list anymore (well, it's empty), so you're always using the fallback list if you don't manually specify an interpreter, and so you'll always get a warning.
  • Therefore this exception is always raised, and the check for legacy never happens, making auto_legacy effectively an alias for auto.
  • Not really important anymore, since the code is never reached, but auto_legacy now uses python3, so seems the legacy option isn't really legacy anymore.

So I've updated the documentation page to reflect these changes.

HarmtH avatar Mar 06 '25 23:03 HarmtH

Thanks for your Ansible docs contribution! We talk about Ansible documentation on Matrix at #docs:ansible.im if you ever want to join us and chat about the docs! We meet on Matrix every Tuesday. See the Ansible calendar for meeting details. We welcome additions to our weekly agenda items too. You can add the dawgs-meeting tag to a forum topic to bring it up at the next meeting.

Backport to stable-2.17: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.17/02282b8d6d26ce584a85472526586ca8b65a81c4/pr-2438

Backported as https://github.com/ansible/ansible-documentation/pull/2608

🤖 @patchback I'm built with octomachinery and my source is open — https://github.com/sanitizers/patchback-github-app.

patchback[bot] avatar May 06 '25 16:05 patchback[bot]

Thanks @HarmtH for the Ansible docs fix!

samccann avatar May 06 '25 16:05 samccann

Backport to stable-2.18: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.18/02282b8d6d26ce584a85472526586ca8b65a81c4/pr-2438

Backported as https://github.com/ansible/ansible-documentation/pull/2609

🤖 @patchback I'm built with octomachinery and my source is open — https://github.com/sanitizers/patchback-github-app.

patchback[bot] avatar May 06 '25 16:05 patchback[bot]