Debian Codegraph @

test/integration/targets/copy/tasks/selinux.yml

raw
1 # Ensure that our logic for special filesystems works as intended
2 # https://github.com/ansible/ansible/issues/70244
3 - block:
4 - name: Install dosfstools
5 dnf:
6 name: dosfstools
7 state: present
8
9 - name: Create a file to use for a fat16 filesystem
10 command: dd if=/dev/zero of=/fat16 bs=1024 count=10240
11
12 - name: mkfs.fat
13 command: mkfs.fat -F16 /fat16
14
15 - name: Mount it
16 command: mount /fat16 /mnt
17
18 - name: Copy a file to it
19 copy:
20 src: /etc/fstab
21 dest: /mnt/fstab
22 remote_src: true
23 always:
24 - name: Unmount it
25 command: umount /mnt
26 ignore_errors: true
27
28 - name: Nuke /fat16
29 file:
30 path: /fat16
31 state: absent
32
33 - name: Uninstall dosfstools
34 dnf:
35 name: dosfstools
36 state: absent