fix: Added GPG key to role
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test/2 Pipeline failed
ci/woodpecker/push/test/1 Pipeline failed
ci/woodpecker/push/z.ntfy unknown status
ci/woodpecker/cron/cron/2 Pipeline failed
ci/woodpecker/cron/cron/1 Pipeline failed
ci/woodpecker/cron/cron/4 Pipeline failed
ci/woodpecker/cron/cron/3 Pipeline failed
ci/woodpecker/cron/z.cron-ntfy unknown status
ci/woodpecker/cron/z.failed-cron-ntfy Pipeline was successful

This commit is contained in:
2024-06-07 13:18:36 +12:00
parent cb228fc925
commit 3c9ca51900
2 changed files with 64 additions and 1 deletions

View File

@@ -1,9 +1,19 @@
---
- name: Copy GPG Key to node
copy:
dest: /tmp/DUO-GPG-PUBLIC-KEY.asc
src: DUO-GPG-PUBLIC-KEY.asc
- name: Ensure Duo GPG Key is installed
rpm_key:
key: https://duo.com/DUO-GPG-PUBLIC-KEY.asc
key: /tmp/DUO-GPG-PUBLIC-KEY.asc
state: present
- name: Ensure key removed from /tmp
file:
path: /tmp/DUO-GPG-PUBLIC-KEY.asc
state: absent
- name: Ensure duo repository is present
template:
src: etc.yum.repos.d.duosecurity.j2