From 8811ff59bc67a53cafc9775f2186db9bde6b63dc Mon Sep 17 00:00:00 2001 From: Fiehe Christoph Date: Mon, 9 Mar 2026 21:56:22 +0100 Subject: [PATCH] ref: improve options documentation Signed-off-by: Fiehe Christoph --- plugins/lookup/merge_variables.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/plugins/lookup/merge_variables.py b/plugins/lookup/merge_variables.py index e829070d6a..62137549c7 100644 --- a/plugins/lookup/merge_variables.py +++ b/plugins/lookup/merge_variables.py @@ -124,12 +124,21 @@ options: type: str choices: flatten: Flatten lists, converting nested lists into single lists. Does not support any additional options. - dedup: Remove duplicates from lists. Supported options are C(keep) (str) with C(first) (default) for dropping duplicates - except for the first occurrence or C(last) for the last occurrence. + dedup: Remove duplicates from lists. Supported option is C(keep). options: description: - Options as key value pairs. type: dict + suboptions: + keep: + description: + - Determines which duplicates (if any) to keep. + - Only valid in combination with the V(dedup) list transformation. + type: str + default: first + choices: + first: Drop duplicates except for the first occurrence. + last: Drop duplicates except for the last occurrence. default: [] version_added: 12.5.0 """