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
fc428003
Commit
fc428003
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
use deploy_user_name var in deploy step
Former-commit-id: 40484ee771d49f464144b56d21d4bf37a9780fd4
parent
6793dd24
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
+7
-7
7 additions, 7 deletions
ansible/deploy.yaml
with
7 additions
and
7 deletions
ansible/deploy.yaml
+
7
−
7
View file @
fc428003
...
...
@@ -10,22 +10,22 @@
-
name
:
stop iPPIDB service if relevant
systemd
:
state=stopped name=ippidb-web
-
name
:
pull branch master
become_user
:
ippidb
become_user
:
"
{{
deploy_user_name
}}"
git
:
repo=git@gitlab.pasteur.fr:odoppelt/iPPIDB.git
dest=/home/
ippidb
/iPPIDB
dest=/home/
{{ deploy_user_name }}
/iPPIDB
accept_hostkey=yes
-
name
:
install python requirements
pip
:
requirements=/home/
ippidb
/iPPIDB/ippisite/requirements.txt extra_args=--upgrade executable=pip3
pip
:
requirements=/home/
{{ deploy_user_name }}
/iPPIDB/ippisite/requirements.txt extra_args=--upgrade executable=pip3
-
name
:
collect static files
become_user
:
ippidb
become_user
:
"
{{
deploy_user_name
}}"
django_manage
:
command
:
"
collectstatic"
app_path
:
"
/home/
ippidb
/iPPIDB/ippisite"
app_path
:
"
/home/
{{
deploy_user_name
}}
/iPPIDB/ippisite"
-
name
:
create mod_wsgi configuration
django_manage
:
command
:
"
runmodwsgi
--setup-only
--port=80
--user
ippidb
--group
wheel
--server-root=/etc/ippidb-80"
app_path
:
"
/home/
ippidb
/iPPIDB/ippisite"
app_path
:
"
/home/
{{
deploy_user_name
}}
/iPPIDB/ippisite"
-
name
:
restrict access to the web server to specific IPs
lineinfile
:
dest=/etc/ippidb-80/httpd.conf
regexp=''
...
...
@@ -34,7 +34,7 @@
-
name
:
copy systemd service file for IPPIDB-web
copy
:
remote_src
:
true
src
:
/home/
ippidb
/iPPIDB/ansible/ippidb-web.service
src
:
/home/
{{ deploy_user_name }}
/iPPIDB/ansible/ippidb-web.service
dest
:
/lib/systemd/system/ippidb-web.service
owner
:
root
group
:
root
...
...
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