Commit 9b72bfd5 authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'fix-role-postgres' into 'master'

Ansible fix pg init command

See merge request !6298

(cherry picked from commit 5b84a9cb)

7a6127e8 fix command noc/system_roles/postgres/tasks/os/CentOS_7/main.yml
69a166d2 change type variable postgres_version for RedHat family
parent 4281ef95
Pipeline #36275 passed with stages
in 51 minutes and 23 seconds
......@@ -863,7 +863,7 @@ all:
postgres_power: master
postgres_replicator_password: noc
postgres_superuser_password: noc
postgres_version: 14
postgres_version: "14"
required_assets:
- web
- mib
......
......@@ -18,7 +18,7 @@
- requirements
- name: PostgreSQL init db
command: '{{ postgres_bin_dir }}/postgresql{{ postgres_version|replace(".","") }}-setup initdb'
command: '{{ postgres_bin_dir }}/postgresql{% if postgres_version == "14" %}-{% endif %}{{ postgres_version|replace(".","") }}-setup initdb'
args:
creates: /var/lib/pgsql/{{ postgres_version }}/initdb.log
......
......@@ -18,7 +18,7 @@
- requirements
- name: PostgreSQL init db
command: '{{ postgres_bin_dir }}/postgresql{{ postgres_version|replace(".","") }}-setup initdb'
command: '{{ postgres_bin_dir }}/postgresql{% if postgres_version == "14" %}-{% endif %}{{ postgres_version|replace(".","") }}-setup initdb'
args:
creates: /var/lib/pgsql/{{ postgres_version }}/initdb.log
......
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