From ed0753ad224f0c65133bd7a63180257eecd9f5e3 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Wed, 8 Jan 2025 10:48:09 +0100 Subject: vault backup: 2025-01-08 10:48:09 --- .trash/3 resources/ansible/nested-loops.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .trash/3 resources/ansible/nested-loops.md (limited to '.trash/3 resources/ansible/nested-loops.md') diff --git a/.trash/3 resources/ansible/nested-loops.md b/.trash/3 resources/ansible/nested-loops.md new file mode 100644 index 0000000..3a5be97 --- /dev/null +++ b/.trash/3 resources/ansible/nested-loops.md @@ -0,0 +1,3 @@ +Nested loops can be done not by nesting loops over two separate lists, but by looping over the [[cartesian-product]] of the two using the `product` filter. + +`{{ list1 | product(list) | list }}` \ No newline at end of file -- cgit v1.2.3