[ansible-project] Re: Looping through hosts in a playbook

2015-11-27 Thread Roger Sherman
Oh, that's an interesting idea, thanks Paul - I'll do some experimenting with that. On Thursday, November 26, 2015 at 10:27:56 PM UTC-5, Paul Markham wrote: > > You can have multiple plays in a playbook. Put the tasks that can be done > in parallel in one play and the tasks that need to be done

[ansible-project] Re: Looping through hosts in a playbook

2015-11-27 Thread Roger Sherman
Hi Alexander, I don't think "with_items" is the way to go here - if I use "with_items", it's going to try to execute on all of the hosts at once, unless it can be used in a method that I haven't thought of. On Thursday, November 26, 2015 at 12:44:45 AM UTC-5, Alexander Artemenko wrote: > > Rog

[ansible-project] Re: Looping through hosts in a playbook

2015-11-26 Thread Paul Markham
You can have multiple plays in a playbook. Put the tasks that can be done in parallel in one play and the tasks that need to be done one at a time in another play with "serial: 1". -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscr

[ansible-project] Re: Looping through hosts in a playbook

2015-11-25 Thread Alexander Artemenko
Roger, did you try to use "with_items" ( http://docs.ansible.com/ansible/playbooks_loops.html#standard-loops)? среда, 25 ноября 2015 г., 22:24:02 UTC+3 пользователь Roger Sherman написал: > > I'm working on a playbook, that will be deploying a java app to four > hosts. I want it to push the app o