mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-08-03 13:25:00 +00:00
Compare commits
5 Commits
b5a47f27b6
...
bb55710716
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb55710716 | ||
|
|
f392e407f9 | ||
|
|
c77c592fc6 | ||
|
|
02006a1e7f | ||
|
|
1512495dd7 |
@@ -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: false
|
||||
boot: no
|
||||
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