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}.ta...
%install
mkdir -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(a)nwra.com
Boulder, CO 80301
https://www.nwra.com/