Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/xfs_quota/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: setup Alpine
12 when: ansible_facts.distribution == 'Alpine'
13 package:
14 name:
15 - xfsprogs
16 - xfsprogs-extra
17 - mount
18 - umount
19 state: latest
20
21 - block:
22 - name: Create test user
23 user:
24 name: xfsquotauser
25 state: present
26 become: true
27
28 - include_tasks: uquota.yml
29 - include_tasks: gquota.yml
30 - include_tasks: pquota.yml
31
32 always:
33 - name: cleanup test user
34 user:
35 name: xfsquotauser
36 state: absent
37 become: true