To comment out or uncomment lines in a file in automated deployments we can use the Ansible’s replace module. This module is used to replace all instances of a pattern within a file and perfectly suits our needs. In this note i will show several examples of the Ansible tasks for commenting out and uncommenting […]
The post Ansible: Comment Out & Uncomment Lines in a File appeared first on ShellHacks.