On Friday, 23 March 2018 21.04.30 CET Dayton Jones wrote:
> Ah... thanks!  That's almost got it.  It fails when a "user" in 
> public_ssh_keys isn't in ssh_users, but I can work with that.

That can be solved by a when statement

  when: outer.key in ssh_users

> The biggest 
> issue though, is if a user has multiple keys in public_ssh_keys, only the 
> first one gets placed.  So I'll need to figure out how to check for 
> multiple keys and ensure all get added for the user... 

That's was the hole point out include.yml, it loops over all the keys and add 
them.


-- 
Kai Stian Olstad

-- 
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/2584612.Ogn0zOGJAv%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to