ansible-documentation
ansible-documentation copied to clipboard
Update interpreter_discovery for changes made in ansible-core 2.17
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_legacyeffectively an alias forauto. - Not really important anymore, since the code is never reached, but
auto_legacynow uses python3, so seems the legacy option isn't really legacy anymore.
So I've updated the documentation page to reflect these changes.
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.
Thanks @HarmtH for the Ansible docs fix!
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.