override package name when vendor repo is enabled
This commit is contained in:
parent
6f975a22da
commit
132582b201
@ -2,3 +2,4 @@
|
|||||||
postgres_repository_enabled: False
|
postgres_repository_enabled: False
|
||||||
postgres_version: 10
|
postgres_version: 10
|
||||||
postgres_repository_filename: "Postgresql-{{ postgres_version | regex_replace('\\.') }}"
|
postgres_repository_filename: "Postgresql-{{ postgres_version | regex_replace('\\.') }}"
|
||||||
|
postgres_packagename: postgresql-server
|
||||||
|
@ -9,7 +9,9 @@
|
|||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
gpgkey: "https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ postgres_version }}"
|
gpgkey: "https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ postgres_version }}"
|
||||||
when: postgres_repository_enabled
|
|
||||||
|
|
||||||
|
- set_fact:
|
||||||
|
postgres_packagename: "postgresql{{ postgres_version | regex_replace('\\.') }}-server"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
when: postgres_repository_enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user