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

[2.9] constructed inventory plugin: correct example #69189

Merged
merged 1 commit into from May 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/69165_constructed.yml
@@ -0,0 +1,2 @@
minor_changes:
- Fixed 'intersect' filter spelling in constructed inventory plugin example.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/inventory/constructed.py
Expand Up @@ -45,7 +45,7 @@
private_only: not (public_dns_name is defined or ip_address is defined)

# complex group membership
multi_group: (group_names|intersection(['alpha', 'beta', 'omega']))|length >= 2
multi_group: (group_names | intersect(['alpha', 'beta', 'omega'])) | length >= 2

keyed_groups:
# this creates a group per distro (distro_CentOS, distro_Debian) and assigns the hosts that have matching values to it,
Expand Down