Hi all,
So I have written a playbook in ansible to build all my LVM disk requirements and is working like a charm. I have even got the script to insert the new mount points into the fstab file but I am really finding it hard to get the line tab delimited as per the other lines in fstab.
Any ideas how that is done in ansible??
Here is the code block I am using:
Code:
## Mount the filesystem
- name: Mounting /usr/DS filesystem
mount:
path: /usr/DS
src: /dev/dsvg/DSlv
fstype: ext4
state: mounted
Each time I attempt it I get the line all bunched up in the fstab and if I try a space I get 040 in the line. So I have tried all sorts of regex escape back and forward slashes but still cant get it to work.
Cheers.