Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LQDN Adminsys
piops-roles
rp
Commits
319ce53d
Commit
319ce53d
authored
Mar 07, 2019
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the ownership of some directories
parent
1a61a90f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
12 deletions
+25
-12
tasks/main.yml
tasks/main.yml
+25
-12
No files found.
tasks/main.yml
View file @
319ce53d
...
...
@@ -2,7 +2,7 @@
-
name
:
create a rp user
user
:
append
:
yes
groups
:
[
gitlab-runner
,
www-data
]
groups
:
[
www-data
]
home
:
"
{{
rp_path
}}"
name
:
"
{{
rp_unix_user
}}"
state
:
present
...
...
@@ -38,23 +38,26 @@
path
:
/run/uwsgi/app/rp/
owner
:
"
{{
rp_unix_user
}}"
group
:
www-data
mode
:
0775
-
block
:
-
name
:
create the directory for code and environment
file
:
path
:
"
{{
rp_path
}}"
state
:
directory
group
:
gitlab-runner
mode
:
g+srw
-
name
:
create the directory for code
file
:
path
:
"
{{
rp_source_path
}}"
state
:
directory
group
:
www-data
mode
:
g+srw
recurse
:
yes
-
block
:
-
name
:
unzip the rp code
unarchive
:
src
:
"
{{
rp_download_url
}}"
dest
:
"
{{
rp_path
}}"
keep_newer
:
yes
remote_src
:
yes
mode
:
g+rw
mode
:
g+
s
rw
owner
:
"
{{
rp_unix_user
}}"
group
:
gitlab-runner
group
:
www-data
-
name
:
install python requirement
pip
:
...
...
@@ -69,6 +72,15 @@
virtualenv_python
:
python3
when
:
rp_debug
-
name
:
setting proper permission for the virtualenv
file
:
path
:
"
{{
rp_path
}}/env"
state
:
directory
follow
:
false
group
:
www-data
mode
:
g+srw
recurse
:
yes
-
name
:
yarn install the application
yarn
:
path
:
"
{{
rp_source_path
}}/"
...
...
@@ -86,6 +98,9 @@
template
:
src
:
templates/env.py.j2
dest
:
"
{{
rp_source_path
}}/project/settings/env.py"
owner
:
"
{{
rp_unix_user
}}"
group
:
www-data
mode
:
g+srw
-
name
:
migrate the database
django_manage
:
...
...
@@ -111,5 +126,3 @@
template
:
src
:
templates/vassals-rp.j2
dest
:
/etc/uwsgi-emperor/vassals/rp.ini
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