Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
bf1cb682
Commit
bf1cb682
authored
8 years ago
by
Fred Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag notess tasks
parent
33a8b2be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
playbooks/roles/edx_notes_api/tasks/main.yml
+25
-5
No files found.
playbooks/roles/edx_notes_api/tasks/main.yml
View file @
bf1cb682
...
@@ -52,6 +52,9 @@
...
@@ -52,6 +52,9 @@
extra_args
:
"
--exists-action
w"
extra_args
:
"
--exists-action
w"
become_user
:
"
{{
edx_notes_api_user
}}"
become_user
:
"
{{
edx_notes_api_user
}}"
with_items
:
"
{{
edx_notes_api_requirements
}}"
with_items
:
"
{{
edx_notes_api_requirements
}}"
tags
:
-
install
-
install:system-requirements
-
name
:
Migrate
-
name
:
Migrate
shell
:
>
shell
:
>
...
@@ -64,6 +67,9 @@
...
@@ -64,6 +67,9 @@
environment
:
environment
:
EDXNOTES_CONFIG_ROOT
:
"
{{
COMMON_CFG_DIR
}}"
EDXNOTES_CONFIG_ROOT
:
"
{{
COMMON_CFG_DIR
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
migrate
-
migrate:db
-
name
:
Write out gunicorn.py
-
name
:
Write out gunicorn.py
template
:
template
:
...
@@ -73,7 +79,8 @@
...
@@ -73,7 +79,8 @@
group
:
"
{{
common_web_user
}}"
group
:
"
{{
common_web_user
}}"
mode
:
"
0650"
mode
:
"
0650"
tags
:
tags
:
-
deploy
-
install
-
install:configuration
-
name
:
Write out the supervisor wrapper
-
name
:
Write out the supervisor wrapper
template
:
template
:
...
@@ -95,7 +102,8 @@
...
@@ -95,7 +102,8 @@
group
:
"
{{
common_web_user
}}"
group
:
"
{{
common_web_user
}}"
mode
:
"
0644"
mode
:
"
0644"
tags
:
tags
:
-
deploy
-
install
-
install:configuration
-
name
:
Setup the edx_notes_api env file
-
name
:
Setup the edx_notes_api env file
template
:
template
:
...
@@ -117,13 +125,15 @@
...
@@ -117,13 +125,15 @@
force
:
yes
force
:
yes
when
:
not disable_edx_services
when
:
not disable_edx_services
tags
:
tags
:
-
deploy
-
install
-
install:configuration
-
name
:
Update supervisor configuration
-
name
:
Update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
when
:
not disable_edx_services
when
:
not disable_edx_services
tags
:
tags
:
-
deploy
-
manage
-
manage:start
-
name
:
Restart supervisor
-
name
:
Restart supervisor
supervisorctl
:
supervisorctl
:
...
@@ -133,7 +143,8 @@
...
@@ -133,7 +143,8 @@
state
:
restarted
state
:
restarted
when
:
not disable_edx_services
when
:
not disable_edx_services
tags
:
tags
:
-
deploy
-
manage
-
manage:start
-
name
:
Create symlinks from the venv bin dir
-
name
:
Create symlinks from the venv bin dir
file
:
file
:
...
@@ -144,12 +155,18 @@
...
@@ -144,12 +155,18 @@
-
python
-
python
-
pip
-
pip
-
django-admin.py
-
django-admin.py
tags
:
-
install
-
install:app-requirements
-
name
:
Create manage.py symlink
-
name
:
Create manage.py symlink
file
:
file
:
src
:
"
{{
edx_notes_api_manage
}}"
src
:
"
{{
edx_notes_api_manage
}}"
dest
:
"
{{
COMMON_BIN_DIR
}}/manage.{{
edx_notes_api_service_name
}}"
dest
:
"
{{
COMMON_BIN_DIR
}}/manage.{{
edx_notes_api_service_name
}}"
state
:
link
state
:
link
tags
:
-
install
-
install:app-requirements
-
name
:
Restart edx_notes_api
-
name
:
Restart edx_notes_api
supervisorctl
:
supervisorctl
:
...
@@ -159,3 +176,6 @@
...
@@ -159,3 +176,6 @@
state
:
restarted
state
:
restarted
when
:
not disable_edx_services
when
:
not disable_edx_services
become_user
:
"
{{
supervisor_service_user
}}"
become_user
:
"
{{
supervisor_service_user
}}"
tags
:
-
manage
-
manage:start
This diff is collapsed.
Click to expand it.
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