Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/lookup_flattened/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: test with_flattened
12 set_fact: '{{ item }}=flattened'
13 with_community.general.flattened:
14 - - a__
15 - - b__
16 - - c__
17 - d__
18 - name: verify with_flattened results
19 assert:
20 that:
21 - a__ == 'flattened'
22 - b__ == 'flattened'
23 - c__ == 'flattened'
24 - d__ == 'flattened'