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

Become root before importing the RPM key #16

Merged
merged 1 commit into from
Mar 20, 2024
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
2 changes: 2 additions & 0 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
---

- 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

Check failure on line 7 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

7:10 [colons] too many spaces after colon

Check failure on line 7 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

7:81 [line-length] line too long (82 > 80 characters)

Check failure on line 7 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

7:10 [colons] too many spaces after colon

Check failure on line 7 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

7:81 [line-length] line too long (82 > 80 characters)
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

Check failure on line 14 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

14:81 [line-length] line too long (89 > 80 characters)

Check failure on line 14 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

14:81 [line-length] line too long (89 > 80 characters)
when: ansible_facts.get('architecture') is search("aarch64")

- name: postgres | setup dnf repository for arch64

Check warning on line 17 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

name[casing]

All names should start with an uppercase letter.

Check warning on line 17 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

name[casing]

All names should start with an uppercase letter.
become: true
ansible.builtin.dnf:
update_cache: true
Expand All @@ -21,7 +23,7 @@
state: present
when: ansible_facts.get('architecture') is search("aarch64")

- name: postgres | setup dnf repository for amd64

Check warning on line 26 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

name[casing]

All names should start with an uppercase letter.

Check warning on line 26 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

name[casing]

All names should start with an uppercase letter.
become: true
ansible.builtin.dnf:
update_cache: true
Expand All @@ -30,7 +32,7 @@
state: present
when: ansible_facts.get('architecture') is search("x86_64")

- name: postgres | install client packages

Check warning on line 35 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (rockylinux9)

name[casing]

All names should start with an uppercase letter.

Check warning on line 35 in tasks/redhat.yml

View workflow job for this annotation

GitHub Actions / Test (ubuntu2204)

name[casing]

All names should start with an uppercase letter.
become: true
ansible.builtin.dnf:
update_cache: true
Expand Down
Loading