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
818d9e4b
Commit
818d9e4b
authored
Jan 24, 2021
by
viscapi
Browse files
Merge branch 'factorize-postgresql-systemd-tasks' into 'master'
Role postgresql, task systemd: factorize tasks. See merge request
!2
parents
6aecc539
7cddbc7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
postgresql/tasks/systemd.yml
View file @
818d9e4b
...
...
@@ -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)
...
Write
Preview
Supports
Markdown
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