aioue / ansible-role-aptly

Install aptly debian respository manager and enable the REST API
https://galaxy.ansible.com/list#/roles/3898
MIT License
42 stars 12 forks source link
ansbile ansible-galaxy ansible-role aptly aptly-server

aptly

Role Variables

Setup clients to use the repo

apt-key add {public.key generated on server}
echo 'deb http://{server_name}/{respository_name} trusty main' > /etc/apt/sources.list.d/<respository_name>.list

Upload a new package using the REST API

curl -v -X POST -F file=@<package_name>.deb http://localhost:8080/api/files/<package_name>
curl -v -X POST http://localhost:8080/api/repos/<repository_name>/file/<package_name>
curl -v -X PUT -H 'Content-Type: application/json' --data '{}' http://localhost:8080/api/publish/<repository_name>/trusty

License

MIT

Author Information