From 7a82c49a5f9725ede7f43cceda26d95d8b40a33b Mon Sep 17 00:00:00 2001 From: "Jose A. Rivera" Date: Fri, 10 Nov 2017 11:31:40 -0600 Subject: [PATCH] Fix documentation for mount state (#32647) * Fix documentation for mount state Fixes https://github.com/ansible/ansible/issues/18948 Signed-off-by: Jose A. Rivera * Remove redundant line --- lib/ansible/modules/system/mount.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/system/mount.py b/lib/ansible/modules/system/mount.py index 323d8fd718..bb934d0d17 100644 --- a/lib/ansible/modules/system/mount.py +++ b/lib/ansible/modules/system/mount.py @@ -58,13 +58,14 @@ options: state: description: - If C(mounted), the device will be actively mounted and appropriately - configured in I(fstab). - - If C(unmounted), the device will be unmounted without changing I(fstab). - - C(absent) and C(present) only deal with I(fstab) but will not affect - current mounting. - - If specifying C(mounted) and the mount point is not present, the mount + configured in I(fstab). If the mount point is not present, the mount point will be created. - - Similarly, specifying C(absent) will remove the mount point directory. + - If C(unmounted), the device will be unmounted without changing I(fstab). + - C(present) only specifies that the device is to be configured in + I(fstab) and does not trigger or require a mount. + - C(absent) specifies that the device mount's entry will be removed from + I(fstab) and will also unmount the device and remove the mount + point. required: true choices: [ absent, mounted, present, unmounted ] fstab: