add repository name option

This commit is contained in:
Robert Kaussow 2018-10-14 23:33:31 +02:00
parent 93056db9e1
commit aa87e9d842
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
--- ---
postgres_repository_enabled: False postgres_repository_enabled: False
postgres_version: 10 postgres_version: 10
postgres_repository_filename: Postgresql-{{ postgres_version }}

View File

@ -3,6 +3,7 @@
- name: Add PostgreSQL repository - name: Add PostgreSQL repository
yum_repository: yum_repository:
name: postgresql name: postgresql
file: {{ postgres_repository_filename }}
description: PostgreSQL yum repository description: PostgreSQL yum repository
baseurl: "https://download.postgresql.org/pub/repos/yum/{{ postgres_version }}/redhat/rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}" baseurl: "https://download.postgresql.org/pub/repos/yum/{{ postgres_version }}/redhat/rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}"
gpgcheck: yes gpgcheck: yes