On 5/17/21 7:30 PM, NAVEEN wrote: > Hello Guys , > Need help.Written code as below , > > --- > - hosts: localhost > vars: > iLo_IP: 'XXXXXXXXXXX' > iLo_username: 'test' > iLo_password: 'testuser' > tasks: > - name: Get iLO firmware version > uri: > url: "https://{{ iLo_IP }}/rest/v1/managers/1" > method: GET > user: "{{ ilo_user }}" > password: "{{ ilo_password }}" > force_basic_auth: true > validate_certs: false > status_code: 200 > with_items: "{{ ilo_addr.results | map(attribute='ansible_facts.ipmi') | > list }}" > register: ilo_version > > - set_fact: > ilo_firmware: "{{ item.json.Firmware.Current.VersionString.split(' > v')[-1] | replace('.', '') }}" > with_items: "{{ ilo_version.results }}" > no_log: true > > > when i execute this ,I am getting below error.can someone pls help me out.. > > *Fatal : [localhost] : FAILED! => { "msg" : "'ilo_addr' is undefined"}* >
That's a kind of surprise when ilo_addr is not defined in your playbook, isn't
it?
Regards
Racke
> --
> *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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAB_%3D4obzR%2B8oUMVN-TAWKHGAn5N6Q-M_DWYW%3D1ptFCCzaB4euQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAB_%3D4obzR%2B8oUMVN-TAWKHGAn5N6Q-M_DWYW%3D1ptFCCzaB4euQ%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/a75171e2-4066-5b9b-1fc7-23aeb50440e2%40linuxia.de.
OpenPGP_signature
Description: OpenPGP digital signature
