Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
poc_irods
poc-irods
Commits
929ad177
Commit
929ad177
authored
Oct 13, 2020
by
viscapi
Browse files
Tentative fix for DB initialization under Debian 10
parent
2693eda3
Changes
1
Hide whitespace changes
Inline
Side-by-side
postgresql/tasks/db_init.yml
View file @
929ad177
...
...
@@ -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")
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment