Systems Admin Info

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ansible:serialization [2023/05/12 17:09] – removed - external edit (Unknown date) 127.0.0.1ansible:serialization [2023/05/12 18:06] (current) The SuperUser
Line 1: Line 1:
 +====== Changing Serialization on the Fly ======
 +
 +
 +If you need have a playbook that you can dynamically choose the serial, this is a good way:
 +
 +<code>serial: "{{ ser_count | default('1') }}"</code>
 +  
 +Make default what you want to run as normally using standard serial convention, and then you can pass is ser_count.  Great for control from Ansible Tower templates.
 +
 +From the command line, this is what you would do to run all hosts at once
 +<code>ansible-playbook -i hosts.commvault patch.yml -e="ser_count=100%"</code>
 +