Am Freitag, 27. Januar 2017 14:53:14 UTC+1 schrieb Johannes Kastl:
>
> On 27.01.17 14:46 Cev Ing wrote:
>
> I.e. set 'foobar=production' in your production variable file, and
> then use the value of foobar to get the right hash.
>
>
I got the idea. It is explained here:
https://www.digitaloce
On 27.01.17 14:46 Cev Ing wrote:
> How to get the different SSH keys in the users.yml without
> duplicating all the remaining data for each environment?
group_vars would be another idea.
> But how to know in a playbook in which environment the playbook is
> executed?
Setting a variable? If you
I have different environments and for each an inventory: production.ini and
development.ini.
I have a users.yml containing user data:
users:
- username: foo
uid: 1001
gid: 1001
pw_hash: $6$...
ssh_key: ssh-rsa ...
- username: bar
uid: 1002
gid: 1002
pw_hash: $