Installs nfs-common and manages NFS mount entries from nfs_client_mounts (src, path, optional opts, state present or absent). Each mount point is created without owner, group or mode, because once a share is mounted a chown or chmod there changes the permissions on the NFS server. The role writes only the fstab line and reloads systemd; it never mounts or unmounts. An absent entry maps to ansible.posix.mount's absent_from_fstab, which removes the line and leaves the share and the directory alone. The default options are _netdev,nofail. x-systemd.automount is left out. Verified locally: yamllint, ansible-lint (production profile), syntax check of the scenario playbooks, the controller-side refusals of verify.yml (14 cases, each matched on its own message), and the module's fstab behaviour against a scratch fstab (replacement, absent_from_fstab, idempotence). Not verified: Molecule, which runs only in CI; the apt install and the daemon-reload handler; that systemd generates the mount units in the scenario's containers. Refs #402 Assisted-by: Claude Code
9 lines
620 B
YAML
9 lines
620 B
YAML
---
|
|
minor_changes:
|
|
- >-
|
|
nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries in ``/etc/fstab`` from ``nfs_client_mounts``
|
|
(``src``, ``path``, optional ``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts``
|
|
(default ``_netdev,nofail``) for an entry that sets none. It creates each mount point without owner, group or mode,
|
|
writes only the fstab line, never mounts or unmounts, and reloads systemd after a change. An ``absent`` entry loses its
|
|
line and nothing else. Declares Ubuntu noble and resolute; the molecule scenario never mounts a share.
|