Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/filesize/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: Ensure the test dir is present
12 ansible.builtin.file:
13 path: "{{ filesize_testdir }}"
14 state: directory
15
16 - name: Ensure the test file is absent
17 ansible.builtin.file:
18 path: "{{ filesize_testfile }}"
19 state: absent
20
21 - name: Run all tests and remove the workspace anyway
22 block:
23 - name: Include tasks to test error handling
24 include_tasks: errors.yml
25
26 - name: Include tasks to test basic behaviours
27 include_tasks: basics.yml
28
29 - name: Include tasks to test playing with floating point numbers
30 include_tasks: floats.yml
31
32 - name: Include tasks to test playing with sparse files
33 include_tasks: sparse.yml
34 when:
35 - not (ansible_facts.os_family == 'Darwin' and ansible_facts.distribution_version is version('11', '<'))
36
37 - name: Include tasks to test playing with symlinks
38 include_tasks: symlinks.yml
39
40 always:
41 - name: Remove test dir
42 ansible.builtin.file:
43 path: "{{ filesize_testdir }}"
44 state: absent