Commit 7dac05e9 authored by viscapi's avatar viscapi
Browse files

Fixed a possibly non working conditional for CentOS

parent d30b0da7
......@@ -16,13 +16,13 @@
command: /usr/pgsql-9.6/bin/initdb -D {{path_to_icat}}
become: true
become_user: postgres
when: stat_result_centos.stat.exists == False and (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7" and stat_result_centos.stat.exists == False)
- name: Initialisation de la base de données ICAT sur CentOS 8
command: /usr/bin/initdb -D {{path_to_icat}}
become: true
become_user: postgres
when: stat_result_centos.stat.exists == False and (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8" and stat_result_centos.stat.exists == False)
- name: Initialisation de la base de données ICAT sur Debian 10
command: /usr/bin/pg_createcluster -d {{ path_to_icat }} {{ postgresql_version.version.major }} {{ cluster_name }}
......
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