Code :
---
- name: Gather facts from a HP iLO interface only if the system is an HP
server
community.general.hpilo_info:
host: wwwwwwwwwwwwwwwwww
login: test
password: testuser
when: cmdb_hwmodel.startwith('HP ')
delegate_to: localhost
register: results
- ansible.builtin.fail:
msg: 'CMDB serial ({{ cmdb_serialno }}) does not match hardware serial
({{ results.hw_system_serial }}) !'
when: cmdb_serialno != results.hw_system_serial
On Fri, May 14, 2021 at 12:43 PM Stefan Hornburg (Racke) <[email protected]>
wrote:
> On 5/14/21 9:06 AM, NAVEEN wrote:
> > Written code below screenshot
> >
>
> You have a typo in delegate_to:
>
> Otherwise please post playbooks and error messages in the mail and *not as
> screenshot*
>
> Regards
> Racke
>
> > On Fri, May 14, 2021, 10:58 Dick Visser <[email protected] <mailto:
> [email protected]>> wrote:
> >
> >
> https://docs.ansible.com/ansible/latest/collections/community/general/hpilo_info_module.html
> > <
> https://docs.ansible.com/ansible/latest/collections/community/general/hpilo_info_module.html
> >
> >
> >
> > On Fri, 14 May 2021 at 05:07, NAVEEN <[email protected] <mailto:
> [email protected]>> wrote:
> >
> > Hello guys,
> >
> > I want to display hp ilo version ,bios version bios date raid
> version.. by using ANSIBLE code .can some one pls
> > help me to achive that.
> >
> > I am new to ansible so pls help me out
> >
> > --
> > 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] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/CAB_%3D4oYsnaLHxaAdq8M4gQw6sEWopw3aJ-HOy8jqviXycVWh9g%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/CAB_%3D4oYsnaLHxaAdq8M4gQw6sEWopw3aJ-HOy8jqviXycVWh9g%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
> >
> > --
> > Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
> >
> > --
> > 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] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwN4JrEKkf%3D-ihRb%3D_ve5gq4_1nT%3DLKPvb7C%3D_eMuAzxTg%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwN4JrEKkf%3D-ihRb%3D_ve5gq4_1nT%3DLKPvb7C%3D_eMuAzxTg%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
> >
> > --
> > 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] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/CAB_%3D4oY8cPiN77u5AUmhXZqbGZ%3D6JoA7Fr1NQZd53_3ZPQr6vA%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/CAB_%3D4oY8cPiN77u5AUmhXZqbGZ%3D6JoA7Fr1NQZd53_3ZPQr6vA%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> 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/4dcdaa01-e887-b05a-5305-47b0fe6ca065%40linuxia.de
> .
>
--
*Regards*
*Naveen *
--
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/CAB_%3D4obo_ZOFin%3DUbdKrrzBE3Gq%3DSELKYbatu0DC3tKVtD41SA%40mail.gmail.com.