Migrate the code for mount_device
This commit is contained in:
18
roles/mount_device/molecule/default/verify.yml
Normal file
18
roles/mount_device/molecule/default/verify.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Verify
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
any_errors_fatal: true
|
||||
|
||||
tasks:
|
||||
- name: "Check mountpoint" # noqa: command-instead-of-module
|
||||
changed_when: false
|
||||
register: mounts
|
||||
ansible.builtin.command:
|
||||
cmd: mount -l
|
||||
|
||||
- name: "Ensure test_file is mounted on test_mount"
|
||||
ansible.builtin.assert:
|
||||
that: "'/tmp/test_file on /test_mount type ext3' in mounts.stdout"
|
||||
success_msg: "/test_mount is a mounted"
|
||||
fail_msg: "/test_mount is not on the list of mounts"
|
||||
Reference in New Issue
Block a user