From 537a9c7e349123c94df71d8099ba1dd344533cc8 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 29 May 2024 11:12:01 +0200 Subject: [PATCH] The NFS mountpoint is a directory. --- tasks/autofs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/autofs.yml b/tasks/autofs.yml index 8e6858f..4e94cfd 100644 --- a/tasks/autofs.yml +++ b/tasks/autofs.yml @@ -97,6 +97,7 @@ - name: autofs | Force the ownership of the mount point ansible.builtin.file: dest: "{{ item.mountpoint_prefix }}/{{ item.path }}" + state: "{{ item.state | default('directory') }}" owner: "{{ item.owner_uid }}" group: "{{ item.owner_gid }}" mode: "{{ item.permissions }}"