Is there a way that I can run a playbook that lets say patches where it will patch all hosts in a group simultaneously instead of running systematically through each individual server?
Thanks!
Is there a way that I can run a playbook that lets say patches where it will patch all hosts in a group simultaneously instead of running systematically through each individual server?
Thanks!
I bet there are better ways but what would stop you from forking a
bunch of instances?
Hi Chris,
By default, ansible will run 5 hosts in parallel at at time
https://docs.ansible.com/ansible/2.5/reference_appendices/config.html#default-forks
Description: |
Maximum number of forks Ansible will use to execute tasks on target hosts. |
---|---|
Type: |
integer |
Default: |
5 |
Ini Section: |
defaults |
Ini Key: |
forks |
Environment: |
If you want to run all the hosts in parallel, I suppose you can add the following to your ansible.cfg
[default]
forks=999
Tony Chia
Could someone please share an Ansible Playbook that would update/upgrade a group of Ubuntu servers.
Thanks…
Very cool! Thanks! Clearly, I’m still learning ansible.
Thanks, this would work.