From 9874a49d1a3716260efee79a9546cb14f876fddb Mon Sep 17 00:00:00 2001 From: Rohan Sadale Date: Tue, 2 Oct 2018 08:48:13 -0700 Subject: [PATCH] Add examples for bind and unmount to mount module docs PR #46375 --- lib/ansible/modules/system/mount.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/ansible/modules/system/mount.py b/lib/ansible/modules/system/mount.py index 4bc9d43d9cb..3066c3dbfc9 100644 --- a/lib/ansible/modules/system/mount.py +++ b/lib/ansible/modules/system/mount.py @@ -121,6 +121,19 @@ EXAMPLES = ''' fstype: xfs opts: noatime state: present + +- name: Unmount a mounted volume + mount: + path: /tmp/mnt-pnt + state: unmounted + +- name: Mount and bind a volume + mount: + path: /system/new_volume/boot + src: /boot + opts: bind + state: mounted + fstype: none '''