Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Import RPM keys directly from URL" #502

Merged
merged 2 commits into from
Jul 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions tasks/pkg-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,55 @@
) else 'yes'
) }}

- name: Download current RPM key
get_url:
url: "{{ datadog_yum_gpgkey_current }}"
dest: /tmp/DATADOG_RPM_KEY_CURRENT.public
mode: 600
force: true

- name: Import current RPM key
rpm_key:
key: "{{ datadog_yum_gpgkey_current }}"
key: /tmp/DATADOG_RPM_KEY_CURRENT.public
state: present
when: not ansible_check_mode

- name: Download new RPM key (Expires in 2022)
get_url:
url: "{{ datadog_yum_gpgkey_e09422b3 }}"
dest: /tmp/DATADOG_RPM_KEY_E09422B3.public
mode: 600
checksum: "sha256:{{ datadog_yum_gpgkey_e09422b3_sha256sum }}"

- name: Import new RPM key (Expires in 2022)
rpm_key:
key: "{{ datadog_yum_gpgkey_e09422b3 }}"
key: /tmp/DATADOG_RPM_KEY_E09422B3.public
state: present
when: not ansible_check_mode

- name: Download new RPM key (Expires in 2024)
get_url:
url: "{{ datadog_yum_gpgkey_20200908 }}"
dest: /tmp/DATADOG_RPM_KEY_20200908.public
mode: 600
checksum: "sha256:{{ datadog_yum_gpgkey_20200908_sha256sum }}"

- name: Import new RPM key (Expires in 2024)
rpm_key:
key: "{{ datadog_yum_gpgkey_20200908 }}"
key: /tmp/DATADOG_RPM_KEY_20200908.public
state: present
when: not ansible_check_mode

- name: Download new RPM key (Expires in 2028)
get_url:
url: "{{ datadog_yum_gpgkey_20280418 }}"
dest: /tmp/DATADOG_RPM_KEY_20280418.public
mode: 600
checksum: "sha256:{{ datadog_yum_gpgkey_20280418_sha256sum }}"

- name: Import new RPM key (Expires in 2028)
rpm_key:
key: "{{ datadog_yum_gpgkey_20280418 }}"
key: /tmp/DATADOG_RPM_KEY_20280418.public
state: present
when: not ansible_check_mode

Expand Down