pants-plugins icon indicating copy to clipboard operation
pants-plugins copied to clipboard

[ansible] Evaluate a dedicated Ansible collection target type

Open sureshjoshi opened this issue 3 years ago • 2 comments

sureshjoshi avatar Jun 21 '22 03:06 sureshjoshi

What would this entail? A target generator like python_sources -> python_source?

Eric-Arellano avatar Aug 01 '22 23:08 Eric-Arellano

@lilatomic had a lot of good ideas about this. Essentially, as roles/collections have a dedicated folder structure - determining the source root and then using that folder type to figure out what is part of that collection (and role, and whatever else) seems like a reasonable idea.

That might involve a generator to enumerate all the files, or maybe some resources/files targets in addition to code. Not sure exactly, but for now, a clever glob would work.

sureshjoshi avatar Aug 02 '22 00:08 sureshjoshi