Add %ansible_roles_dir and %ansible_collections_dir

We expect collections to use %ansible_collection_install and
%ansible_collection_file{s,list}. I'm mainly defining
%ansible_collection_dir for use in our macros.

There are a couple packaged roles in Fedora that can use
%ansible_roles_dir. This can also be used if we decide to implement
macros for packaging roles.
epel8
Maxwell G 2 years ago
parent 1fe80d26d6
commit 2f4f3dbe16
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

@ -1,3 +1,6 @@
%ansible_roles_dir %{_datadir}/ansible/roles
%ansible_collections_dir %{_datadir}/ansible/collections/ansible_collections
%ansible_collection_build() ansible-galaxy collection build
%ansible_collection_install() ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}.tar.gz

Loading…
Cancel
Save