diff --git a/defaults/main.yml b/defaults/main.yml index 3952d24..3ae6b53 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,4 @@ --- postgres_repository_enabled: False postgres_version: 10 +postgres_repository_filename: Postgresql-{{ postgres_version }} diff --git a/tasks/prepare.yml b/tasks/prepare.yml index ce6cb7f..2555c22 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -3,6 +3,7 @@ - name: Add PostgreSQL repository yum_repository: name: postgresql + file: {{ postgres_repository_filename }} description: PostgreSQL yum repository baseurl: "https://download.postgresql.org/pub/repos/yum/{{ postgres_version }}/redhat/rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}" gpgcheck: yes