Hi Uli,

> We developed quite a number of collections which utilize the deep
> folder structure to organize the content. Example:
> 
> #################################
> ├── playbooks/
> │   ├── db/
> │   │   ├── client/
> │   │   │   └── deploy_software.yml
> │   │   └── server/
> │   │       └── deploy_software.yml
> │   └── ...
> ├── plugins/
> │   ├── action/
> │   │   ├── db/
> │   │   │   └── foo.py
> │   │   └── app/
> │   │       └── backend/
> │   │           └── api.py
> │   └── ...
> └── ...  
> #################################
> 
> To us the benefit is the clear organization of plugins and playbooks
> (among many other nice things).
> 
> Recently many of the community collections have been reorganized
> (afaik by Felix Fontein) to have a flat structure again. On the other
> hand tools like ansible-lint have been fixed to fully support deep
> structures.
> 
> My questions to you is: What the the future of deep structures in 
> collections?

deep structures are fully supported. (I don't know whether they work
for playbooks or roles - I've never tried them there - but they
definitely work for plugins and modules, and I'm not aware of any plans
to change that.)

The reason we removed that structure for community.general and
community.network was that the structure there was never intended to be
seen by users. It was only used to structure the content of the
collection (c.g has 568 modules) so modules covering similar topics are
in the same directory, making development of the collection easier.

Since it was no longer possible to hide this from users, we decided to
remove the structure.

Best regards,
Felix


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/20230210205342.7aa18787%40rovaniemi.

Reply via email to