Skip to content

Commit

Permalink
Merge pull request #16 from sbesson/missing_become
Browse files Browse the repository at this point in the history
Become root before importing the RPM key
  • Loading branch information
jburel authored Mar 20, 2024
2 parents fbffae3 + 327a921 commit bf160f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---

- name: Import a key for postgres (x86_64)
become: true
ansible.builtin.rpm_key:
state: present
key: https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL
when: ansible_facts.get('architecture') is search("x86_64")

- name: Import a key for postgres (aarch64)
become: true
ansible.builtin.rpm_key:
state: present
key: https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-AARCH64-RHEL
Expand Down

0 comments on commit bf160f3

Please sign in to comment.