2020-04-01 11:20:57 +13:00
|
|
|
---
|
2024-06-07 13:18:36 +12:00
|
|
|
- name: Copy GPG Key to node
|
|
|
|
|
copy:
|
|
|
|
|
dest: /tmp/DUO-GPG-PUBLIC-KEY.asc
|
|
|
|
|
src: DUO-GPG-PUBLIC-KEY.asc
|
2024-12-24 06:28:05 +13:00
|
|
|
changed_when: false
|
2024-06-07 13:18:36 +12:00
|
|
|
|
2020-04-01 11:20:57 +13:00
|
|
|
- name: Ensure Duo GPG Key is installed
|
|
|
|
|
rpm_key:
|
2024-06-07 13:18:36 +12:00
|
|
|
key: /tmp/DUO-GPG-PUBLIC-KEY.asc
|
2020-04-01 11:20:57 +13:00
|
|
|
state: present
|
|
|
|
|
|
2024-06-07 13:18:36 +12:00
|
|
|
- name: Ensure key removed from /tmp
|
|
|
|
|
file:
|
|
|
|
|
path: /tmp/DUO-GPG-PUBLIC-KEY.asc
|
|
|
|
|
state: absent
|
2024-12-24 06:28:05 +13:00
|
|
|
changed_when: false
|
2024-06-07 13:18:36 +12:00
|
|
|
|
2020-04-01 11:20:57 +13:00
|
|
|
- name: Ensure duo repository is present
|
2023-10-11 12:48:46 +13:00
|
|
|
template:
|
|
|
|
|
src: etc.yum.repos.d.duosecurity.j2
|
2020-04-01 11:20:57 +13:00
|
|
|
dest: /etc/yum.repos.d/duosecurity.repo
|
|
|
|
|
|