Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
2b187a7e
Commit
2b187a7e
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add installation of postgresql to ansible
Former-commit-id: 98c2fdffc27eaa33855579fc512db794430d84dc
parent
0f1940de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/deploy.yaml
+23
-0
23 additions, 0 deletions
ansible/deploy.yaml
with
23 additions
and
0 deletions
ansible/deploy.yaml
+
23
−
0
View file @
2b187a7e
...
@@ -48,6 +48,29 @@
...
@@ -48,6 +48,29 @@
name
:
"
@Development
tools"
name
:
"
@Development
tools"
state
:
present
state
:
present
become
:
true
become
:
true
-
name
:
install PostgreSQL
yum
:
name
:
"
postgresql-server"
state
:
present
become
:
true
-
name
:
Initiate database
command
:
service postgresql initdb
creates=/var/lib/pgsql/data/postgresql.conf
-
name
:
Start PostgreSQL and enable at boot
service
:
name=postgresql
enabled=yes
state=started
-
name
:
Ensure PostgreSQL is listening on all localhost
lineinfile
:
dest=/var/lib/pgsql/data/postgresql.conf
regexp='^#?listen_addresses\s*='
line="listen_addresses = '127.0.0.1'"
state=present
-
lineinfile
:
dest=/var/lib/pgsql/data/pg_hba.conf
regexp='host\s+all\s+all\s+127.0.0.1/32\s+md5'
line='host all all 127.0.0.1/32 md5'
insertbefore=BOF
-
name
:
restart postgresql service
systemd
:
state=restarted name=postgresql enabled=yes
#
#
# Stop web server(s)
# Stop web server(s)
#
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment