Commit 929ad177 authored by viscapi's avatar viscapi
Browse files

Tentative fix for DB initialization under Debian 10

parent 2693eda3
......@@ -4,6 +4,7 @@
stat:
path: "{{path_to_icat}}/postgresql.conf"
register: stat_result
when: (ansible_facts['distribution'] == "CentOS")
- name: Initialisation de la base de données ICAT
command: /usr/pgsql-9.6/bin/initdb -D {{path_to_icat}}
......@@ -17,4 +18,11 @@
become_user: postgres
when: stat_result.stat.exists == False and (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")
- name: Initialisation de la base de données ICAT
command: /usr/bin/pg_createcluster -d {{ path_to_icat }} {{ postgresql_version.version.major }} {{ cluster_name }}
become: true
become_user: postgres
when: stat_result.stat.exists == False and (ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "10")
...
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