You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
406 B

- 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