repos.yml 788 Bytes
Newer Older
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
1
2
---

3
- name: Install external PostgreSQL repository for CentOS 7
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
4
5
  yum:
    conf_file: '/etc/yum.conf'
viscapi's avatar
viscapi committed
6
    name: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
7
    state: present
8
9
10
11
12
13
14
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7" and not use_distribution_postgresql)

- name: Install external PostgreSQL repository for CentOS 8
  dnf:
    conf_file: '/etc/dnf/dnf.conf'
    name: https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    state: present
15
    disable_gpg_check: yes
16
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8" and not use_distribution_postgresql)
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
17
18
19

...