2 ms·
While possible to patch using Ansible (lineinfile), it's typically easier to use templates with host vars instead. i.e. define a set of default values which are
by falcolas 13y ago
While possible to patch using Ansible (lineinfile), it's typically easier to use templates with host vars instead. i.e. define a set of default values which are for your deploys, and then a host specific variable for your local machine which provides the alternate values.
Does it beat sed? Probably not in the short term, but it makes it easier to not forget to sed a file when deploying (not to mention adding the ability to skip changing the remote file and sighup nginx when the file hasn't changed).