- name: Install nfs-common apt: update_cache: true name: - nfs-common - name: Create fstab entries mount: path: "{{ item.path }}" src: "{{ item.src }}" fstype: nfs state: mounted loop: "{{ nfs }}"