mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
796 B
YAML
36 lines
796 B
YAML
4 years ago
|
# Ensure that our logic for special filesystems works as intended
|
||
|
# https://github.com/ansible/ansible/issues/70244
|
||
|
- block:
|
||
|
- name: Install dosfstools
|
||
|
yum:
|
||
|
name: dosfstools
|
||
|
state: present
|
||
|
|
||
|
- name: Create a file to use for a fat16 filesystem
|
||
|
command: dd if=/dev/zero of=/fat16 bs=1024 count=10240
|
||
|
|
||
|
- name: mkfs.fat
|
||
|
command: mkfs.fat -F16 /fat16
|
||
|
|
||
|
- name: Mount it
|
||
|
command: mount /fat16 /mnt
|
||
|
|
||
|
- name: Copy a file to it
|
||
|
copy:
|
||
|
src: /etc/fstab
|
||
|
dest: /mnt/fstab
|
||
|
always:
|
||
|
- name: Unmount it
|
||
|
command: umount /mnt
|
||
|
ignore_errors: true
|
||
|
|
||
|
- name: Nuke /fat16
|
||
|
file:
|
||
|
path: /fat16
|
||
|
state: absent
|
||
|
|
||
|
- name: Uninstall dosfstools
|
||
|
yum:
|
||
|
name: dosfstools
|
||
|
state: absent
|