2025-07-16 17:14:16 -06:00

24 lines
464 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: root
group: root
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 }}"