I am developing an Ansible deployment solution for my department. I write Ansible playbooks on my workstation, then push them to git. I then log into the Ansible Master host and run
git pull to pull down the changes for testing.
Is there a way to have git automatically push the changes to the remote host whenver I push a change to the master branch? It looks like hooks are the way to go, but I’m having trouble figuring out how exactly they work, or how to get started.