On Fri, Apr 1, 2022 at 10:27 PM Richard Hector <[email protected]> wrote:
>
> Hi all,
>
> Currently my inventory is stored in the same git repo as my play(book)s,
> roles etc, which I don't like.

Consider using git submodules if you want a unified workspace.

> What are common ways to avoid this? Perhaps keep inventory in a subdir
> which is .gitignored, and make that a separate repo?
>
> I also want to keep data which is not strictly inventory - eg lists of
> users, ssh keys etc which are specific to my site/business, but shared
> across many hosts and groups. I think I need to use lookups to access
> this. Perhaps that data and inventory can go together in that other repo?
>
> eg:
>
> /home/richard/ansible/
>    .git/
>      .gitignore (ansible/data)
>    .ansible.cfg
>    /data
>      .git/
>      /inventory
>        hosts
>        /host_vars
>        /group_vars
>      users.yml
>    /plays
>    /roles
>
> Does that seem reasonable?
>
> That way, if (when) I have questions in the future, I can refer you all
> to my ansible repo without sharing the private data :-)
>
> Are there better ways to do this?
>
> Cheers,
> Richard
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/c0b602a7-b40e-7254-f153-c98a49dd3046%40walnut.gen.nz.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAOCN9ryjniK1KgQ33d3-RW0xLK-NM6Zz%3DJoEbyVDJy_LYxKJQw%40mail.gmail.com.

Reply via email to