Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Limit playbook to a subset of servers, by count
81 views
Skip to first unread message
Tzach Livyatan
unread,
Jun 15, 2015, 8:38:48 AM
6/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
6/19/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi Tzach,
I think you are looking for this kind of answer from Michael himself:
https://groups.google.com/forum/#!msg/ansible-project/qfoeqytbRE4/SI58rlzeEwMJ
All the best!
Tzach Livyatan
unread,
Jun 21, 2015, 5:37:51 AM
6/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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