mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-08-03 13:25:00 +00:00
Compare commits
2 Commits
bb55710716
...
b5a47f27b6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5a47f27b6 | ||
|
|
d0bd237e11 |
@@ -471,20 +471,20 @@
|
||||
ansible.posix.mount:
|
||||
path: /tmp/myfs
|
||||
state: absent
|
||||
|
||||
|
||||
- name: Mount the FS with noauto option and defaults
|
||||
ansible.posix.mount:
|
||||
path: /tmp/myfs
|
||||
src: /tmp/myfs.img
|
||||
fstype: ext3
|
||||
state: mounted
|
||||
boot: no
|
||||
boot: false
|
||||
register: mount_info
|
||||
|
||||
- name: Assert the mount without noauto was successful
|
||||
- name: assert the mount without noauto was successful
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'noauto' in mount_info['opts'].split(',')"
|
||||
- "'noauto' in mount_info['opts'].split(',')"
|
||||
|
||||
- name: Unmount FS
|
||||
ansible.posix.mount:
|
||||
|
||||
Reference in New Issue
Block a user