Re: [ansible-project] Reading in extra files, as or into dicts?

2022-04-16 Thread Vladimir Botka
On Sat, 16 Apr 2022 23:52:14 +1200 Richard Hector wrote: For example, given the tree shell> tree inventory/ inventory/ ├── group_vars │   └── all ├── hosts └── users ├── public_keys │   ├── alice@bar │   ├── alice@foo │   ├── richard@bar │   └── richard@foo └── user_vars

Re: [ansible-project] Reading in extra files, as or into dicts?

2022-04-16 Thread 'Michael Ströder' via Ansible Project
On 4/16/22 13:52, Richard Hector wrote: On 16/04/22 22:13, Richard Hector wrote: I have created a directory 'users' alongside my inventory. It has a directory 'user_vars', intended to be used like host_vars, but for users, obviously. I've got this, but it looks horrible: ==

Re: [ansible-project] Reading in extra files, as or into dicts?

2022-04-16 Thread Richard Hector
On 16/04/22 22:13, Richard Hector wrote: Hi all, I have created a directory 'users' alongside my inventory. It has a directory 'user_vars', intended to be used like host_vars, but for users, obviously. In there, I have files like this: = --- name: richard gecos:

[ansible-project] Reading in extra files, as or into dicts?

2022-04-16 Thread Richard Hector
Hi all, I have created a directory 'users' alongside my inventory. It has a directory 'user_vars', intended to be used like host_vars, but for users, obviously. In there, I have files like this: = --- name: richard gecos: 'Richard Hector,,,' shell: '/bin/bash' ssh_keys: