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

PMM-13314 Add flag to control adding yum repo in initialization procedure #3164

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
8 changes: 8 additions & 0 deletions update/ansible/playbook/tasks/roles/postgres/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'

- name: Add PostgreSQL 11 YUM repository for EL7
yum_repository:
Expand All @@ -19,6 +21,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'

# we need the old postgres binary for the upgrade process
- name: Install Postgres
Expand Down Expand Up @@ -48,6 +52,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'

- name: Add PostgreSQL 11 YUM repository for EL9
yum_repository:
Expand All @@ -57,6 +63,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'

# we need the old postgres binary for the upgrade process
- name: Install Postgres
Expand Down
Loading