--- - name: install requirements dnf: state: installed name: nfs-utils become: yes when: ansible_distribution == 'Fedora' - name: install requirements apt: state: installed name: nfs-common become: yes when: ansible_distribution == 'Ubuntu' - name: install requirements yum: state: installed name: nfs-utils become: yes when: ansible_distribution == 'CentOS' - name: mount lasarchiv1 mount: name: "/mnt/las-archiv1" src: "{{ nfs_server }}:/las-archiv1" fstype: nfs4 opts: "soft,timeo=14,intr,nosuid" state: mounted become: yes