Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/file_remove/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 file_remove 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: Ensure the test directory is absent before starting
13 ansible.builtin.file:
14 path: "{{ file_remove_testdir }}"
15 state: absent
16
17 - name: Create the test directory
18 ansible.builtin.file:
19 path: "{{ file_remove_testdir }}"
20 state: directory
21 mode: '0755'
22
23 - name: Include tasks to test error handling
24 ansible.builtin.include_tasks: test_errors.yml
25
26 - name: Include tasks to test glob pattern matching
27 ansible.builtin.include_tasks: test_glob.yml
28
29 - name: Include tasks to test regex pattern matching
30 ansible.builtin.include_tasks: test_regex.yml
31
32 - name: Include tasks to test recursive removal
33 ansible.builtin.include_tasks: test_recursive.yml
34
35 - name: Include tasks to test different file types
36 ansible.builtin.include_tasks: test_file_types.yml
37
38 - name: Include tasks to test check mode and diff mode
39 ansible.builtin.include_tasks: test_check_diff.yml