Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use multiple YAML documents for inventory plugin examples #9551

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

felixfontein
Copy link
Collaborator

SUMMARY

I thought this still doesn't work, but apparently @tremble fixed it more than a year ago in ansible/ansible@5346009! Thanks a lot for that :)

This likely won't pass CI since ansible-core 2.16 and before won't accept this, I'll add ignore.txt entries in a follow-up commit once I know what exactly fails.

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

inventory plugins

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-10 Automatically create a backport for the stable-10 branch labels Jan 7, 2025
Copy link
Contributor

@tremble tremble left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, +1 from me.

IMO this makes inventory examples easier to understand, and silences some of the ansible-lint complaints about duplicate keys.

Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one tiny typo that was there before, other than that LGTM

plugins/inventory/virtualbox.py Outdated Show resolved Hide resolved
Co-authored-by: Alexei Znamensky <[email protected]>
@felixfontein felixfontein merged commit 3f7ea60 into ansible-collections:main Jan 8, 2025
138 checks passed
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jan 8, 2025
Copy link

patchback bot commented Jan 8, 2025

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/3f7ea607664397e130d6c3f00c99b5874b9172af/pr-9551

Backported as #9559

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

@felixfontein felixfontein deleted the inventory branch January 8, 2025 18:38
patchback bot pushed a commit that referenced this pull request Jan 8, 2025
* Use multiple YAML documents for inventory plugin examples.

* Add ignore.txt entries.

* Delete no longer needed ignore.txt files.

* Fix typo.

Co-authored-by: Alexei Znamensky <[email protected]>

---------

Co-authored-by: Alexei Znamensky <[email protected]>
(cherry picked from commit 3f7ea60)
@felixfontein
Copy link
Collaborator Author

@tremble @russoz thanks a lot for reviewing this!

felixfontein added a commit that referenced this pull request Jan 8, 2025
…or inventory plugin examples (#9559)

Use multiple YAML documents for inventory plugin examples (#9551)

* Use multiple YAML documents for inventory plugin examples.

* Add ignore.txt entries.

* Delete no longer needed ignore.txt files.

* Fix typo.

Co-authored-by: Alexei Znamensky <[email protected]>

---------

Co-authored-by: Alexei Znamensky <[email protected]>
(cherry picked from commit 3f7ea60)

Co-authored-by: Felix Fontein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-10 Automatically create a backport for the stable-10 branch cloud docs inventory inventory plugin plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants