Automated, large-scale deployments with Ansible's pull-mode
If you’re a regular reader of my blog, you will know two things about me:
- I like Ansible.
- I frequently begin posts with “if you’re a regular reader of my blog”.
I recently discovered that Ansible got a “pull mode”, which is a super-simple way for Ansible to pull a repository and run commands from a file you specify. Unfortunately, documentation is pretty sparse, but that’s only a disadvantage until you realize that pull mode is really, really simple.
What “pull mode” is.
“Pull mode” is a single, very simple script. You can invoke it with ansible-pull, and all it does is what is described in its man page:
