Re: Packaging of Ansible collections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

%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@xxxxxxxx
Boulder, CO 80301                 https://www.nwra.com/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-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/packaging@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux