Re: [ansible-project] Running playbook in ansible collection

2023-09-08 Thread Emilio Botero
Hi Felix, Todd: Thank you for your answers. I managed to get my code to run. I had to do some restructuring! I put shared code in module_utils/ and then user_groups_sync.py in modules/ Moving on to more interesting problems! Emilio On Thursday, September 7, 2023 at 4:57:38 PM UTC-4 Todd Lewis

Re: [ansible-project] Running playbook in ansible collection

2023-09-07 Thread Todd Lewis
Hey Emilio, I hope I don't waste your time with bad advice. My experience with collections has been "interesting" - not always in a productive way. So here goes. While it's certainly possible to package playbooks in collections, that might be adding to the problem. It appears you're invoking

Re: [ansible-project] Running playbook in ansible collection

2023-09-07 Thread 'Felix Fontein' via Ansible Project
Hi, > I am writing an ansible collection to configure some internal company > tools. Inside this collection I want to have several roles. These > roles are very similar to each other, so I want to put some shared > utility functions and classes in some shared location. As far as I > understand, th

[ansible-project] Running playbook in ansible collection

2023-09-07 Thread Emilio Botero
Hi, I am writing an ansible collection to configure some internal company tools. Inside this collection I want to have several roles. These roles are very similar to each other, so I want to put some shared utility functions and classes in some shared location. As far as I understand, that's what