I ran the following
Tasks:
- debug:
var: ansible_ssh_host_key_ecdsa_public
Received this
{
"ansible_ssh_host_key_ecdsa_public":
"AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMj3Y7I/7ByqhoT22sBg2D0tUO8rCVQRTUQXyecCPVfXud9tnInwxXJUI8KKoIScw2YEKQuq8SPB46CE6ce6Bqw="
> On Jan 7, 2019, at 1:23 PM, Brian Coca <[email protected]> wrote:
>
> so one of your hosts is not returning the fact for
> `ansible_ssh_host_key_ecdsa_public`, its not an issue with the
> template, but of getting the variable defined in the first place, the
> 'item' from the error will tell the first host host it is (add
> ignore_errors:yes and you'll see all the hosts that fail).
>
> To avoid such issues you might want to use the |default() filter or
> check if the key exists before using it.
>
>
> --
> ----------
> 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 [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/CACVha7coGzYr0OP80hc9SydkyoqYR3eygvuZuM_LP80ZzNcecA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
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/06B0600A-C8D5-4236-AFD3-045FC09E12C5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.