--- - name: "[Alpine] Generate /etc/fstab" template: src: fstab.j2 dest: /etc/fstab mode: 0755 owner: root group: root when: - ansible_distribution == "Alpine" - system.fstab is defined - name: "[Alpine] Install package: nfs-utils" apk: name: nfs-utils state: present update_cache: yes when: - ansible_distribution == "Alpine" - system.enableNFSMount is true - name: "[OpenRC] Disable and stop service: nfsmount" service: name: nfsmount enabled: no state: stopped when: - ansible_service_mgr == "openrc" - system.enableNFSMount is false