May, 2014 | [Dev|Web|Sys]Ops
image_pdfimage_print
Using ansible to append a string to the end of a line

Using ansible to append a string to the end of a line

I am using ansible to apply security hardening to CentOS6 VMs. We are following the 179 page CIS security benchmark: http://benchmarks.cisecurity.org/downloads/show-single/?file=centos6.100 Thanks for the heads up to¬†Philippe Eveque for the complicated regex and backrefs example: https://groups.google.com/d/msg/ansible-project/JvHfchsgRaU/Vw_CzBbvadgJ This code will add audit=1 to the end of any line starting with “kernel” – name: 4.2.3 Enable Auditing […]

image_pdfimage_print