On Friday, 23 March 2018 19.43.34 CET Dayton Jones wrote: > The reason I have 2 dictionaries (and can't combine them) is primarily the > "public_ssh_keys" resides in group_var/all/ssh_keys.yml and contains all > the user keys. But ssh_users reside in group_vars/[group_name].yml and > the list of users can be different per [group name] > > While I know having a structure like: > > public_ssh_keys: > - user: user1 > key: key > group: > - group1 > - group4 > > - user: user2 > key: > - key1 > - key2 > group: > - group1 > - group2 > - group6 > > makes sense, and would make this play trivial, I can't make that change at > this time... .
Then you need to use loop in a loop https://docs.ansible.com/ansible/latest/playbooks_loops.html#loop-control -- 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/2752216.zWdRuQd9Bq%40x1. For more options, visit https://groups.google.com/d/optout.
