The last topic we'd like to cover in this section is Ansible pull. If you have a large number of hosts that you'd like to release software on simultaneously, you will be limited by the number of parallel SSH connections that can be run. At scale, the pull model is preferred to the push model. Ansible supports what is called as Ansible pull. Ansible pull works individually on each node. The prerequisite is that it points to a repository from where it can invoke a special file called
<hostname>.yml. Typically, the
ansible-pull option is run either as a cron job or is triggered remotely by some other means.
We're going to use our
tomcat example again, with the only difference being that the structure of the ...