I’m looking for some sample ansible playbooks that show how I could update an application that is load balanced?
Ideally, I want to be able to push the files to server, restart services on secondary server, change DNS, and make secondary primary. Then update primary, restart services on primary, and then flip DNS back to primary.
Also I’m looking for the right ansible DNS module to use. I can use either the bind or nsd daemons.
Any advice would be appreciated.
Thanks.