We've had Ansible collection packaging macros for two years now, so I figured it was time to write up some guidelines. This is marked as a draft, as I'm still soliciting feedback and tying up some loose ends:
Mainly, I'm thinking about removing the need for the %global collection_* boilerplate and having the macros read from the metadata, instead. For that to happen, %{ansible_collection_files} would need to be replaced with an approach that passes a file list to %files -f so it could be dynamically generated. This is a nice side effect, IMO, because this would align the ansible macros with other ecosystems.
To give credit where credit is due, @ignatenkobrain initially wrote these macros.
We've had Ansible collection packaging macros for two years now, so I figured it was time to write up some guidelines. This is marked as a draft, as I'm still soliciting feedback and tying up some loose ends:
Mainly, I'm thinking about removing the need for the
%global collection_*boilerplate and having the macros read from the metadata, instead. For that to happen,%{ansible_collection_files}would need to be replaced with an approach that passes a file list to%files -fso it could be dynamically generated. This is a nice side effect, IMO, because this would align the ansible macros with other ecosystems.To give credit where credit is due, @ignatenkobrain initially wrote these macros.
/cc @kevin @dmsimard @ngompa @ignatenkobrain