Member-only story
Mount a Windows share in Linux SMB/CIFS — Ansible module mount
How to Mount a Windows share in Linux SMB/CIFS. The Ansible Playbook code is going to check the required packages, create the mount-point, and set up the Windows network shared folder via SMB/CIFS protocol on the Linux target machine. Demo and live coding included.
How to mount a Windows share in Linux SMB/CIFS with Ansible?
I’m going to show you a live demo with some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot
Ansible mount an SMB/CIFS filesystem
- ansible.posix.mount
- Control active and configured mount points
Today we’re talking about the Ansible module mount.
The full name is `ansible.posix.mount`, which means that is part of the collection of modules “ansible.posix” to interact with POSIX platforms.
The purpose of the module is to Control active and configured mount points.
For Windows, use the `community.windows.win_mapped_drive` module instead.