Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/git_config_info/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 # test code for the git_config_info module
8 # Copyright (c) Ansible Project
9 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
10 # SPDX-License-Identifier: GPL-3.0-or-later
11
12 - name: setup
13 import_tasks: setup.yml
14
15 - block:
16 - include_tasks: get_simple_value.yml
17 loop:
18 - import_file: setup_global.yml
19 git_scope: 'global'
20 - import_file: setup_file.yml
21 git_scope: 'file'
22 git_file: "{{ remote_tmp_dir }}/gitconfig_file"
23
24 - include_tasks: get_multi_value.yml
25 loop:
26 - import_file: setup_global.yml
27 git_scope: 'global'
28 - import_file: setup_file.yml
29 git_scope: 'file'
30 git_file: "{{ remote_tmp_dir }}/gitconfig_file"
31
32 - include_tasks: get_all_values.yml
33 loop:
34 - import_file: setup_global.yml
35 git_scope: 'global'
36 - import_file: setup_file.yml
37 git_scope: 'file'
38 git_file: "{{ remote_tmp_dir }}/gitconfig_file"
39
40 - include_tasks: error_handling.yml
41 when: git_installed is succeeded and git_version.stdout is version(git_version_supporting_includes, ">=")
42 ...