On 2/9/20 2:58 AM, Igor Gnatenko wrote:
Hello, Did anybody had an experience of packaging Ansible collections into an RPM?I guess if would be enough to put the files somewhere under /usr/share/ansible, but not sure. Also I'm not sure what download URL could be used.
It seems to me that "ansible-galaxy collection install" simply unpacks the tarball. So, this seems reasonable to me:
Name: ansible-collection-%{namespace}-%{pkgname}Source0: https://galaxy.ansible.com/download/%{namespace}-%{pkgname}-%{version}.tar.gz
%installmkdir -p %{buildroot}%{_datadir}/ansible/collections/ansible_collections/%{namespace}/%{name} tar xf %SOURCE0 -C %{buildroot}%{_datadir}/ansible/collections/ansible_collections/%{namespace}/%{pkgname}
-- Orion Poplawski Manager of NWRA Technical Systems 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@xxxxxxxx Boulder, CO 80301 https://www.nwra.com/
<<attachment: smime.p7s>>
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx