idealista / aptly-role Goto Github PK
View Code? Open in Web Editor NEWAnsible role to create a Debian repository using Aptly
License: Apache License 2.0
Ansible role to create a Debian repository using Aptly
License: Apache License 2.0
After working through 2-3 other bugs on a branch of my fork of your role, I've now run into this error, and seek some explanation about your installation method. Is this role really depending on a personal bintray resource? Is anyone using this role successfully?
TASK [APTLY | Untar aptly] **************************************************************************************************************************************************fatal: [aptly]: FAILED! => changed=false
msg: 'Failure downloading https://bintray.com/artifact/download/smira/aptly/aptly_1.4.0_linux_amd64.tar.gz, HTTP Error 404: Not Found'
When running your role on a fresh Debian Buster machine (after working through several earlier errors), I'm now getting the below error in the "Publish repositories" task:
TASK [aptly : APTLY | Publish repositories] **************************************************************************************************failed: [aptly] (item=biamp-stretch) => changed=true ansible_loop_var: item
cmd: - aptly
- publish
- repo - -config=/etc/aptly.conf
- -component=main
- -gpg-key=pub
- biamp-stretch - biamp-stretch delta: '0:00:00.033917'
end: '2020-11-10 10:38:10.176240'
item: biamp-stretch msg: non-zero return code rc: 1
start: '2020-11-10 10:38:10.142323'
stderr: |- gpg: skipped "pub": No secret key
gpg: signing failed: No secret key
ERROR: unable to publish: unable to detached sign file: exit status 2 stderr_lines: <omitted>
stdout: |-
Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag)
Loading packages...
Generating metadata files and linking package files... Finalizing metadata files...
Signing file 'Release' with gpg, please enter your passphrase when prompted:
stdout_lines: <omitted> ...ignoring
I believe the problem (gpg: skipped "pub": No secret key) is that the gpg key id used in the aptly publish repo
command ("pub") isn't the key id you should be using. This key id is found from taking the last one reported from your gpg --list-keys
command in tasks/config.yml:
gpg --list-keys | grep 'pub ' | tail -1 | sed 's/pub 2048D\///g' | cut -d' ' -f1
Aside from the gpgkey generation and usage not working in this role, I'm genuinely confused about what you're trying to accomplish by grabbing the last key from the list. Seems to me that you'd want to use the one associated with the email addr..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.