Reputation: 392
I use ansible to manage a wide range of VMs, all with their own specifics, but each have some roles commonly defined under them.
Eg. multiple playbooks reference a role, that sets up admin users with access, same goes for ssh setup, timesync, timezone etc.
Now these roles are explicitly referenced in the same way in these playbooks, which is hard to maintain if a role happens to change.
I tried two methods:
If anyone more experienced, is there a suggested way to group commonly used roles together while still having the option to use the separately if needed?
Upvotes: 0
Views: 150
Reputation: 340
I would not want to say that I'm more experienced, but I do have a way of 'making it work for me', and am also struggling with the question if this is the best (or at least a good) way of doing it.
To be completely honest: I'm not there yet, but in a few weekends from now I hope to get there :-).
Upvotes: 1