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
30219b3b
Commit
30219b3b
authored
Nov 12, 2020
by
viscapi
Browse files
Simplified systemd.yml
parent
8fc73879
Changes
1
Show whitespace changes
Inline
Side-by-side
postgresql/tasks/systemd.yml
View file @
30219b3b
---
-
name
:
Activate postgresql-9.6 service for CentOS
7
systemd
:
enabled
:
yes
name
:
postgresql-9.6
when
:
(ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
-
name
:
Activate postgresql service for CentOS
8
systemd
:
enabled
:
yes
name
:
postgresql
when
:
(ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")
-
name
:
Set PGDATA environment variable on CentOS
7
lineinfile
:
path
:
/usr/lib/systemd/system/postgresql-9.6.service
...
...
@@ -26,20 +14,20 @@
line
:
'
Environment=PGDATA={{path_to_icat}}'
when
:
(ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")
-
name
:
Reload systemd daemon
systemd
:
daemon_reload
:
yes
-
name
:
Start postgresql-9.6 service on CentOS
7
systemd
:
name
:
postgresql-9.6
state
:
started
daemon_reload
:
yes
enabled
:
yes
when
:
(ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
-
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")
...
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