2025-07-10 21:24:28 -06:00

24 lines
470 B
YAML

---
- name: Install NFS client
ansible.builtin.dnf:
name: nfs-utils
state: present
- name: Create mount points
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
owner: nfsuser
group: nfsuser
mode: '0755'
loop: "{{ nfs_mounts }}"
- name: Mount NFS shares
ansible.posix.mount:
src: "{{ item.src }}"
path: "{{ item.path }}"
fstype: nfs
opts: "{{ item.opts }}"
state: mounted
loop: "{{ nfs_mounts }}"