Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/iso_extract/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 iso_extract module.
8 # Copyright (c) 2017, James Tanner <[email protected]>
9 # Copyright (c) 2017, Dag Wieers <[email protected]>
10 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
11 # SPDX-License-Identifier: GPL-3.0-or-later
12
13 - set_fact:
14 output_test_dir: '{{ remote_tmp_dir }}/test_iso_extract'
15
16 # TODO: figure out and fix!
17 - name: Doesn't work with Fedora 43+ for some reason
18 meta: end_play
19 when:
20 - ansible_facts.distribution == 'Fedora' and ansible_facts.distribution_major_version is version('43', '>=')
21
22 - name: Install 7zip
23 import_tasks: 7zip.yml
24
25 - name: Prepare environment
26 import_tasks: prepare.yml
27
28 - name: Test in normal mode
29 import_tasks: tests.yml
30 vars:
31 in_check_mode: false
32
33 - name: Prepare environment
34 import_tasks: prepare.yml
35
36 - name: Test in check-mode
37 import_tasks: tests.yml
38 vars:
39 in_check_mode: true
40 check_mode: true
41
42 # FIXME - fill this in after figuring out how to allow mounts