[ansible-project] Re: Access dict key when using with_subelements

2016-11-28 Thread General Luken
I have workaround for this. You basically have to use "include" as a function. Let's say your {{users}} structure looks like this: users: ssh_keys: - somekeyfdsfdsfdsfsdfsdyttytry - someotherkeyfdsryekfdlmgdfm In your main.yml there would be: - include: ssh_key.yml _users_ssh_k

[ansible-project] Is it possible to use files from the "playbook" layer for the "copy" module?

2016-11-28 Thread General Luken
Hi! What I mean by the title: In roles we can have a "files" directory, with files that could be copied to server. I would like to have those files outside of the role, they should be provided by my playbook and not the role. What is a recommended way of achieving it? Best wishes. -- You rece