Hi,
I have been trying to find a way to speed up my playbooks. What i would like to do is have a playbook wherein i am running all tasks on a single host at the same time. Initially i thought i could use async/poll to fire all the tasks in my playbook at the same time. I found out that its not possible to use async/poll on includes or imports in https://github.com/ansible/ansible/issues/19083
In another thread it was advised that to run multiple playbooks/includes in parallel i should use outside tools like gnu parallels. This isn’t pretty for me as I would be prompted for a password at each ansible-playbook call. I can’t encrypt the passwords and place them outside of a vault because these playbooks are used by a team and would be a hassle to swap them out for everyone. (https://github.com/ansible/proposals/issues/31)
What I am looking for is if someone else has a similar situation which they have solved or if I am doing something fundamentally wrong. Any help is greatly appreciated!!!
What i currently have is the below: (there is about 10 other apps that would be in the inventory but ive only included 2 for this purpose)
Inventory:
[all:vars]
complex_prefix=info
instance=prod
user_suffix=
[service1]
host1
[service2]
host[1:2]
Playbook: