- name: Installation de NFS Common ansible.builtin.apt: name: - "nfs-common" - name: Création des points de montage loop: "{{ nfs_client_mounts }}" ansible.builtin.file: path: "{{ item.mount_point }}" state: "directory" owner: "{{ item.owner }}" group: "{{ item.group }}" mode: "{{ item.mode | default('0750') }}" - name: Mount filesystems loop: "{{ nfs_client_mounts }}" ansible.posix.mount: path: "{{ item.mount_point }}" src: "{{ item.server }}" fstype: "nfs4" opts: "{{ item.options | default('rw,sync,hard') }}" state: "mounted" boot: true