Commit 818d9e4b authored by viscapi's avatar viscapi
Browse files

Merge branch 'factorize-postgresql-systemd-tasks' into 'master'

Role postgresql, task systemd: factorize tasks.

See merge request !2
parents 6aecc539 7cddbc7f
......@@ -26,36 +26,11 @@
- path_to_icat != None
- path_to_icat | length > 0
- name: Start postgresql service on CentOS 7
systemd:
name: postgresql
state: started
daemon_reload: yes
enabled: yes
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7" and use_distribution_postgresql)
- name: Start postgresql-{{ external_postgresql_version }} service on CentOS 7
- name: "Start {{ postgres_unit_file_name }}"
systemd:
name: postgresql-{{ external_postgresql_version }}
state: started
daemon_reload: yes
enabled: yes
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7" and not use_distribution_postgresql)
- name: Start postgresql service on CentOS 8
systemd:
name: postgresql
state: started
daemon_reload: yes
enabled: yes
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8" and use_distribution_postgresql)
- name: Start postgresql-{{ external_postgresql_version }} service on CentOS 8
systemd:
name: postgresql-{{ external_postgresql_version }}
name: "{{ postgres_unit_file_name }}"
state: started
daemon_reload: yes
enabled: yes
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8" and not use_distribution_postgresql)
...
Markdown is supported
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