Skip to content

Commit

Permalink
[chores] Perform checksum check when installing GPG keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jul 5, 2024
1 parent 0d3e075 commit dcdcd21
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tasks/freeradius.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@
- molecule-idempotence-notest

- name: Add Network RADIUS PGP public key
become: true
shell: |
curl -s 'https://packages.networkradius.com/pgp/packages%40networkradius.com' | \
sudo tee /etc/apt/trusted.gpg.d/packages.networkradius.com.asc > /dev/null
when:
- ansible_distribution|string == 'Ubuntu' or ansible_distribution|string == 'Debian'
tags:
- molecule-idempotence-notest
get_url:
url: https://packages.networkradius.com/pgp/packages%40networkradius.com
dest: /etc/apt/trusted.gpg.d/packages.networkradius.com.asc
checksum: sha256:652bc3a84297eb133f40af2e51bed897b0c5c22ec6a3ef76a2a14f97f90c9b7d
ignore_errors: true
retries: 5
delay: 10
register: result
until: result is success

- name: Update and upgrade apt packages
apt:
Expand Down

0 comments on commit dcdcd21

Please sign in to comment.