- name: create mountpoint become: true file: path: /backup state: directory - name: Insert a line at the end of a file. become: true lineinfile: line: 192.168.178.36:/mnt/md1/backup /backup nfs defaults,user,rw 1000 1000 path: /etc/fstab - name: mount /backup become: true mount: path: /backup src: 192.168.178.36:/mnt/md1/backup fstype: nfs state: mounted