Thanks again for your help. What needs to be done so that the below play
will print the message?
- name: No extra hard disk
debug:
msg: "No extra hard disk available"
when: ansible_devices.sdb is undefined
Thanks,
Rajesh
On Tuesday, June 9, 2020 at 9:35:07 PM UTC+10, Dick Visser wrote:
>
> On Tue, 9 Jun 2020 at 12:20, Rajesh <[email protected] <javascript:>>
> wrote:
> >
> > Thanks for the reply. The playbook is not printing message as per the
> below task.
> >
> > - name: No extra hard disk
> > debug:
> > msg: "No extra hard disk available"
> > when: ansible_devices.sdb is undefined
>
> This is also correct. As the previous failure was already fatal, the
> playbook will stop executing commands for that host
> (ansible4.example.com).
> You can also tell from the play recap.
>
>
>
> --
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/390c6c44-1f96-40e5-a2ef-93feb2ff236eo%40googlegroups.com.