Ansible – Mount NFS Share Module

ansiblelinuxmount

I am looking for to make a "mount" on nfs share with ansible.
All I found is the "mount:" module that edits the fstab file.
I want to mount without rebooting.

Tx.

Best Answer

Answer in documentation: mount

In simple words you need to set state to the mounted.

If mounted, the device will be actively mounted and appropriately configured in fstab.

Be careful with unmounting.