Skip to content

Commit

Permalink
mirror: use curl instead of ansible.builtin.url
Browse files Browse the repository at this point in the history
Some keys are only available as binary and the echo lookup pipe does not
work properly. Use curl instead.
  • Loading branch information
joconcepts committed Jan 13, 2025
1 parent 4848f28 commit 81ab846
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# For next release
* **jonas.keidel**
* mirror: use curl instead of ansible.builtin.url

Some keys are only available as binary and the echo lookup pipe does not
work properly. Use curl instead.

*Not released yet*

# Patch Release v1.0.1 (2023-12-18)
* **Tom Siewert**
* tasks: add missing tag for repository tasks
Expand Down
1 change: 1 addition & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
- bzip2
- gnupg2
- zstd
- curl
state: present
2 changes: 1 addition & 1 deletion tasks/mirror/gpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
tags: [ aptly-mirror-gpg ]
ansible.builtin.shell: |
set -o pipefail
echo "{{ lookup('ansible.builtin.url', item.url, split_lines=false) }}" |
curl -sL '{{ item.url }}' |
{{ aptly__config.gpgProvider }} \
--no-default-keyring --keyring {{ aptly__user_home_directory }}/.gnupg/trustedkeys.gpg \
--batch --pinentry-mode loopback --import
Expand Down

0 comments on commit 81ab846

Please sign in to comment.