Use dnf on EL 8+.
This commit is contained in:
parent
f2103225f1
commit
715e2b4c49
|
@ -40,7 +40,16 @@
|
|||
- ansible_distribution_file_variety == "RedHat"
|
||||
tags: ['postgresql', 'postgresql_repo', 'postgres_client']
|
||||
block:
|
||||
- name: postgresql_org_repo | Install the pgsql pgdg repository
|
||||
- name: postgresql_org_repo | Install the pgsql pgdg repository on EL 7
|
||||
ansible.builtin.yum:
|
||||
name: "{{ psql_el_pgdg_repo_url }}"
|
||||
state: present
|
||||
disable_gpg_check: true
|
||||
when: ansible_distribution_major_version is version_compare('8', '<')
|
||||
|
||||
- name: postgresql_org_repo | Install the pgsql pgdg repository on EL 8+
|
||||
ansible.builtin.dnf:
|
||||
name: "{{ psql_el_pgdg_repo_url }}"
|
||||
state: present
|
||||
disable_gpg_check: true
|
||||
when: ansible_distribution_major_version is version_compare('8', '>=')
|
||||
|
|
Loading…
Reference in New Issue