I have a playbook which is running against this type of structured inventory file
# Ansible Inventory
[webservers]
host1
host2
[nodes]
host3
host4
[all:vars]
#############################
The playbook needs to effectively run three plays in this order which it is doing:
1. Do stuff to Webservers
2. Do stuff tot Nodes
3. Do stuff to webservers
Currently when I run this playbook there is a complete outage on all hosts as plays are executed.
I want to be able to run my playbook so that there is only a partial outage i.e. first running the entire play against Webserver1(host1) /node1(host3) before repeating the same steps against webserver2(host2)/node2(host4).
I have read about the use of serial but I think this would only help for orchestrating the order of execution within a play as opposed to whole playbook?
Any help much appreciated.