On Wed, Nov 14, 2018 at 3:12 PM flowerysong wrote:
> On Wednesday, November 14, 2018 at 11:19:55 AM UTC-5, Bob Harold wrote:
>>
>>
>> On Tue, Nov 13, 2018 at 5:37 PM Brian Coca wrote:
>>
>>> 1 play before your normal play:
>>>
>>>
>>> hosts: hosta,hostb
>>> gather_facts: False
>>> tasks:
>>>
On Wednesday, November 14, 2018 at 11:19:55 AM UTC-5, Bob Harold wrote:
>
>
> On Tue, Nov 13, 2018 at 5:37 PM Brian Coca >
> wrote:
>
>> 1 play before your normal play:
>>
>>
>> hosts: hosta,hostb
>> gather_facts: False
>> tasks:
>>- ping:
>>- group_by: key=rechable
>>
>> hosts: reachable
On Wednesday, 14 November 2018 18:39:28 CET Brian Coca wrote:
> there is no need to register as the host failing the ping will be
> removed from the play.
Yes it's necessary, if not the group_by still runs, just look at this run
PLAY [a2,a1] **
TASK [ping]
there is no need to register as the host failing the ping will be
removed from the play.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send
On Wednesday, 14 November 2018 17:19:38 CET Bob Harold wrote:
> On Tue, Nov 13, 2018 at 5:37 PM Brian Coca wrote:
>
> > 1 play before your normal play:
> >
> >
> > hosts: hosta,hostb
> > gather_facts: False
> > tasks:
> >- ping:
> >- group_by: key=rechable
> >
> > hosts: reachable
> >
On Tue, Nov 13, 2018 at 5:37 PM Brian Coca wrote:
> 1 play before your normal play:
>
>
> hosts: hosta,hostb
> gather_facts: False
> tasks:
>- ping:
>- group_by: key=rechable
>
> hosts: reachable
>
>
> --
> Brian Coca
>
Thanks for mentioning the 'ping' module - that is new
1 play before your normal play:
hosts: hosta,hostb
gather_facts: False
tasks:
- ping:
- group_by: key=rechable
hosts: reachable
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this
hi
i have two hosts and i need to run my playbook only on one of them. i.e
host A is always the target, unless it is not reachable. in this case, host
B will be the target.
but the point is that if host A is reachable , playbook should't work on
host B.
any advice is accepted.
thanks
--