Limit playbook to a subset of servers, by count

80 views
Skip to first unread message

Tzach Livyatan

unread,
Jun 15, 2015, 8:38:48 AM6/15/15
to ansible...@googlegroups.com
Hi
I have Y running servers, and I would like to move a subset X to a different state.

Can I use something like
ansible-playbook site.yml --limit 3
Where 3 is X, the number of server I want to apply the playbook on.

Thanks
Tzach

Mark van der Hout

unread,
Jun 19, 2015, 5:05:37 AM6/19/15
to ansible...@googlegroups.com
Hi Tzach,

I think you are looking for this kind of answer from Michael himself:


All the best!

Tzach Livyatan

unread,
Jun 21, 2015, 5:37:51 AM6/21/15
to ansible...@googlegroups.com
Thanks Mark
ansible-playbook example.yml --limit all[0%-10%]
or
ansible-playbook example.yml --limit all[0-4]
Is what I was looking for!
Reply all
Reply to author
Forward
0 new messages