[ansible-project] Re: replace module help

2015-04-12 Thread Paul Tötterman
replace: dest=/etc/fstab regexp='(\s+)defaults1 2(\s+.*)?$' replace='\1defaults,noatime1 2\1' backup=yes does not match UUID=b203e2c3-5207-41a8-8f18-795b5ec6550f / ext4 defaults1 1 because of '1 1' vs '1 2' Cheers, Paul -- You

[ansible-project] Re: replace module help

2015-04-09 Thread Edgars
You should use mount module for this http://docs.ansible.com/mount_module.html Edgars trešdiena, 2015. gada 8. aprīlis 16:48:32 UTC+2, Roy rakstīja: Hi I am new to Ansible and writing my first playbook I want to update /etc/fstab UUID=f2550ab4-36cb-4ff0-8afa-9e7839f7ce9f /