Re: [ansible-project] blockinfile and lineinfile behaviour

2021-03-11 Thread Stu Lipshires
should be doing? Do I have to read the existing host file and then add the new values? Can you point to a snippet that would do that? Thanks! On Wednesday, March 10, 2021 at 4:42:34 AM UTC-5 brae...@gmail.com wrote: > On 3/9/21 10:44 PM, Stu Lipshires wrote: > > I have a Host VM that I

[ansible-project] blockinfile and lineinfile behaviour

2021-03-09 Thread Stu Lipshires
I have a Host VM that I am using to launch the creation of multiple OpenShift Clusters. Every time I create a new cluster, I need to update the /etc/hosts and dnsmasq.conf files of this Host VM with the new cluster endpoints. I am using the following code block: - name: update hosts