On Sunday, January 11, 2015 at 12:02:10 PM UTC+1, Dan Vaida wrote:
>
> as I see it, based on your input, you have two problems:
> 1. you're creating the users and generating unique keys on each of the 
> target hosts
>

Correct, and that's what I'm trying to get.
 

> 2. you're trying to iterate through the 'rootkeys' in a way that will 
> never work for the key parameter.
>

Ah yes, something that is re-occuring with ansible for me ;-) it's not 
always clear how to reference variables, sometimes with value.something, 
other times wit set.something, with_dict, with_flattened,etc not very 
clear...
No matter, just learing I guess but the variables with the correct data is 
obviously there, I just need the correct syntax I would think?
 

>
> So, I'd use 'delegate_to: localhost' on the user task, then on the 
> authorized_keys task, in the 'with_items' you would use 
> rootkeys.ssh_public_key 
> to access the keys.
>
>>
>>
But then all the keys would be the same right?  Not what I would want in 
this case.

-- 
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/09a1a9ee-13cf-4fe7-9fc1-f370becfc2d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to