Skip to content

Instantly share code, notes, and snippets.

@fagnersilva
Created June 27, 2017 12:28
Show Gist options
  • Save fagnersilva/f2aca396a1682a8973f17226d31f892a to your computer and use it in GitHub Desktop.
Save fagnersilva/f2aca396a1682a8973f17226d31f892a to your computer and use it in GitHub Desktop.
playbook_postgres,yml
Instalando e configurando o PostgreSQL 9.6
rpm -Uvh https://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server postgresql96-contrib
/usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service
---------------------------------------------------------------------------------------------------------------
postgres.yml
---
- hosts: smartinfra
remote_user: root
tasks:
- name: "Instalando o PostgreSQL 9.6"
yum: name={{ item }} state=present
with_items:
- http://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
- postgresql96-server
- postgresql96-contrib
@fagnersilva
Copy link
Author

I recommend that you join the Ansible community on Telegram. As it has been a long time that you relate this problem, I don't remember at that moment

https://t.me/ansiblebr

@saint7007
Copy link

Just in case anyone tumbles here, have lowered 9.6 to 9.3. It works, the project m working is oldie and the url is no longer into existence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment