ininital commit

This commit is contained in:
Robert Kaussow 2018-10-14 23:17:40 +02:00
parent 55d8126e8f
commit 07553a3f92
4 changed files with 20 additions and 0 deletions

3
defaults/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
postgres_repository_enabled: False
postgres_version: 10

0
tasks/install.yml Normal file
View File

3
tasks/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
- import_tasks: prepare.yml
- import_tasks: install.yml

14
tasks/prepare.yml Normal file
View File

@ -0,0 +1,14 @@
---
- block:
- name: Add PostgreSQL repository
yum_repository:
name: postgresql
description: PostgreSQL yum repository
baseurl: "https://download.postgresql.org/pub/repos/yum/{{ postgresql_version }}/redhat/rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}"
gpgcheck: yes
enabled: yes
gpgkey: "https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ postgresql_version }}"
when: postgres_repository_enabled
become: True
become_user: True