add install task
This commit is contained in:
parent
132582b201
commit
3cb7c49f6c
@ -0,0 +1,11 @@
|
||||
---
|
||||
- block:
|
||||
- name: Install PostgreSQL
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- "{{ postgres_packagename }}"
|
||||
- "{{ postgres_packagename }}-server"
|
||||
become: True
|
||||
become_user: root
|
@ -11,7 +11,10 @@
|
||||
gpgkey: "https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ postgres_version }}"
|
||||
|
||||
- set_fact:
|
||||
postgres_packagename: "postgresql{{ postgres_version | regex_replace('\\.') }}-server"
|
||||
postgres_packagename: "postgresql{{ postgres_version | regex_replace('\\.') }}"
|
||||
|
||||
- debug:
|
||||
msg: "Set PostgreSQL package name to '{{ postgres_packagename }}'"
|
||||
become: True
|
||||
become_user: root
|
||||
when: postgres_repository_enabled
|
||||
|
Loading…
Reference in New Issue
Block a user