Hi Brian, Even I tried with the following in host file but the error is same:
[all] 10.131.88.10 ansible_ssh_host=10.131.88.10 ansible_network_os=nxos username=xxxx password=xxxxx It seems ansible is treating 'inventory_hostname' as a hostname. In fact it knows the inventory_hostname as you see from my playbook-run debug output. Thanks Bikram On Thu, Jun 1, 2023 at 3:01 PM Brian Coca <bc...@redhat.com> wrote: > not if using nxos connection plugin, as it does similar thing in the > background w/o needing delegation. > > On Thu, Jun 1, 2023 at 2:57 PM 'Rowe, Walter P. (Fed)' via Ansible > Project <ansible-project@googlegroups.com> wrote: > > > > Also, does your nxos_facts task need to "delegate_to: localhost" and use > an API to talk to the "inventory_hostname" target? > > > -- > ---------- > Brian Coca > > -- > 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 ansible-project+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CACVha7do%2Bk7oZXZvo1oGiFyEpYRETttQat_Y0Jwgfb0XSeB-cA%40mail.gmail.com > . > -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEFfMJSchaKSkNAks_Qegi7w6PiBcWJbqXBdNURkKWh_0fhLiA%40mail.gmail.com.