diff --git a/linux-system-roles.spec b/linux-system-roles.spec index 22be3f0..d147049 100644 --- a/linux-system-roles.spec +++ b/linux-system-roles.spec @@ -450,10 +450,12 @@ done %if %{with collection_artifact} # Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact +pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/ if [ -f %{collection_namespace}-%{collection_name}-%{version}.tar.gz ]; then mv %{collection_namespace}-%{collection_name}-%{version}.tar.gz \ $RPM_BUILD_ROOT%{_datadir}/ansible/collections/ fi +popd %endif # generate the %files section in the file files_section.txt