Commit c672b7dc authored by viscapi's avatar viscapi
Browse files

Bumped PostgreSQL from 9.3 to 9.6

parent eef1d38a
......@@ -6,7 +6,8 @@
register: stat_result
- name: Initialisation de la base de données ICAT
command: /usr/pgsql-9.3/bin/initdb -D {{path_to_icat}}
#command: /usr/pgsql-9.3/bin/initdb -D {{path_to_icat}}
command: /usr/pgsql-9.6/bin/initdb -D {{path_to_icat}}
become: true
become_user: postgres
when: stat_result.stat.exists == False
......
......@@ -6,9 +6,12 @@
name:
- libselinux-python
- python-pip
- postgresql93
- postgresql93-server
- postgresql93-odbc
# - postgresql93
- postgresql96
# - postgresql93-server
- postgresql96-server
# - postgresql93-odbc
- postgresql96-odbc
state: present
...
---
- name: Installation du dépôt PostgreSQL 9.3
#- name: Installation du dépôt PostgreSQL 9.3
- name: Installation du dépôt PostgreSQL 9.6
yum:
conf_file: '/etc/yum.conf'
name: https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-3.noarch.rpm
name: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
#name: https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-3.noarch.rpm
state: present
...
......
......@@ -5,12 +5,14 @@
- name: Activation du service postgresql-9.3
systemd:
enabled: yes
name: postgresql-9.3
# name: postgresql-9.3
name: postgresql-9.6
# Modification de la variable PGDATA dans /usr/lib/systemd/system/postgresql-9.3.service
- lineinfile:
path: /usr/lib/systemd/system/postgresql-9.3.service
#path: /usr/lib/systemd/system/postgresql-9.3.service
path: /usr/lib/systemd/system/postgresql-9.6.service
regexp: '^Environment=PGDATA='
line: 'Environment=PGDATA={{path_to_icat}}'
......@@ -24,10 +26,8 @@
- name: Démarrage du service postgresql-9.3
systemd:
name: postgresql-9.3
#name: postgresql-9.3
name: postgresql-9.6
state: started
...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment