ininital commit
This commit is contained in:
parent
55d8126e8f
commit
07553a3f92
3
defaults/main.yml
Normal file
3
defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
postgres_repository_enabled: False
|
||||||
|
postgres_version: 10
|
0
tasks/install.yml
Normal file
0
tasks/install.yml
Normal file
3
tasks/main.yml
Normal file
3
tasks/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
- import_tasks: prepare.yml
|
||||||
|
- import_tasks: install.yml
|
14
tasks/prepare.yml
Normal file
14
tasks/prepare.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user