Skip to content

Commit bf160f3

Browse files
authored
Merge pull request #16 from sbesson/missing_become
Become root before importing the RPM key
2 parents fbffae3 + 327a921 commit bf160f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/redhat.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22

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

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

0 commit comments

Comments
 (0)