"The task includes an option with an undefined variable. The error was:
'ansible.vars.hostvars.HostVarsVars object' has no attribute
'ansible_ssh_host_key_ecdsa_public'\n\nThe error appears to have been in
'/home/feisa/ansible-linux/test_single_server.yml': line 6, column 6, but
may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe
offending line appears to be:\n\n\n - debug: msg={{
hostvars[item]['ansible_ssh_host_key_ecdsa_public'] }}\n ^ here\nWe could
be wrong, but this one looks like it might be an issue with\nmissing quotes.
Always quote template expression brackets when they\nstart a value. For
instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n
with_items:\n - \"{{ foo }}\"\n"
> On Jan 7, 2019, at 12:57 PM, Brian Coca <[email protected]> wrote:
>
> - debug: msg={{ hostvars[item]['ansible_ssh_host_key_ecdsa_public'] }}
> loop: '{{groups["all"]}}'
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/A2F0871C-14DB-46BF-A3C4-5714DD99A76E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.