diff options
author | evangelionlion <546620084@qq.com> | 2023-01-06 04:22:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 12:22:34 -0800 |
commit | 6f8c1da0c805f334b8598fd2556f7ed92dc9348e (patch) | |
tree | d0cd88f9be7d5b7e26fd495fbb85a95d277531e9 /lib/ansible | |
parent | 4a29591b98de6eed3a3c937efbf0094ef9917d3d (diff) | |
download | ansible-6f8c1da0c805f334b8598fd2556f7ed92dc9348e.tar.gz |
correct the mistake of example repeat_original (#79659)
there is a little mistake
##### ISSUE TYPE
- Docs Pull Request
+label: docsite_pr
Diffstat (limited to 'lib/ansible')
-rw-r--r-- | lib/ansible/plugins/filter/product.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/filter/product.yml b/lib/ansible/plugins/filter/product.yml index c558e4e426..5035522825 100644 --- a/lib/ansible/plugins/filter/product.yml +++ b/lib/ansible/plugins/filter/product.yml @@ -30,7 +30,7 @@ EXAMPLES: | repeat_original: "{{ [1,2] | product(repeat=2) }}" # repeat_product => [ [ 1, "a", 1, "a" ], [ 1, "a", 1, "b" ], [ 1, "a", 2, "a" ], [ 1, "a", 2, "b" ], [ 1, "b", 1, "a" ], [ 1, "b", 1, "b" ], [ 1, "b", 2, "a" ], [ 1, "b", 2, "b" ], [ 2, "a", 1, "a" ], [ 2, "a", 1, "b" ], [ 2, "a", 2, "a" ], [ 2, "a", 2, "b" ], [ 2, "b", 1, "a" ], [ 2, "b", 1, "b" ], [ 2, "b", 2, "a" ], [ 2, "b", 2, "b" ] ] - repeat_product: "{{ [1,2] | product(['a', 'b']) }}" + repeat_product: "{{ [1,2] | product(['a', 'b'], repeat=2) }}" # domains => [ 'example.com', 'ansible.com', 'redhat.com' ] domains: "{{ [ 'example', 'ansible', 'redhat'] | product(['com']) | map('join', '.') }}" |