From e2f147bcec8d5e44f2aa4f73d86f9959e6eb8f2e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 13 Feb 2023 12:07:10 -0500 Subject: ansible-inventory, add --limit option (#79596) * ansible-inventory, add --limit option * also graph * optimize the when not providing limit * added tests and clog * avoid empty groups, fix tests * i swear there as an ignore_errors there already!!?!?!? * Fix stdout test fallback Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> * simpler approach using subset against inventory directly * tyupose * renamed funciton to what it actuall does got yaml in line with others about removing empty groups * have graph ignore limts, also note same for --host * fixed typo long line * better test * cause hosvars are not a thing --------- Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com> Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> --- changelogs/fragments/ainv_limit.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/ainv_limit.yml (limited to 'changelogs') diff --git a/changelogs/fragments/ainv_limit.yml b/changelogs/fragments/ainv_limit.yml new file mode 100644 index 0000000000..feb27fcfaf --- /dev/null +++ b/changelogs/fragments/ainv_limit.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-inventory now supports the limit command line options. -- cgit v1.2.3