Skip to content

[PR #2404/a18cc3d7 backport][stable-2.19] Update playbooks_filters.rst #2611

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

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented May 6, 2025

This is a backport of PR #2404 as merged into devel (a18cc3d).

Reworked the examples of our playbook filters cheat sheet.
Tl;Dr:

  • Add more example output
  • (more) unify formatting of examples
  • Add "Create a list from a list repeated N times"

Add more example output

(cherry picked from commit a18cc3d)
@samccann
Copy link
Contributor

samccann commented May 6, 2025

as per matrix conversation, the original PR should have failed CI in devel but it was old and didn't run the yamllint checker. The problem is:
https://github.com/ansible/ansible-documentation/pull/2404/files#diff-1b80df375549a276775802519d6e3017c3f12721b7c8bba79f04431233067a26R841
['foo', 'bar'] | product(['com']) }} is a Jinja template, it is not YAML + Jinja

Will close this and the other backports, fix devel, and manually backport the prs.

@samccann samccann closed this May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants