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
30ed75b6
Unverified
Commit
30ed75b6
authored
Jul 01, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use YAML syntax for ansible tasks
parent
a2ce7bd7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
21 deletions
+49
-21
playbooks/roles/stop_all_edx_services/handlers/main.yml
+24
-6
playbooks/roles/stop_all_edx_services/tasks/main.yml
+25
-15
No files found.
playbooks/roles/stop_all_edx_services/handlers/main.yml
View file @
30ed75b6
...
...
@@ -19,22 +19,40 @@
#
#
-
name
:
stop supervisor
service
:
name=supervisor state=stopped arguments="{{ STOP_ALL_EDX_SERVICES_EXTRA_ARGS }}"
service
:
name
:
supervisor
state
:
stopped
arguments
:
"
{{
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
}}"
-
name
:
stop nginx
service
:
name=nginx state=stopped arguments="{{ STOP_ALL_EDX_SERVICES_EXTRA_ARGS }}"
service
:
name
:
nginx
state
:
stopped
arguments
:
"
{{
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
}}"
-
name
:
stop rabbitmq-server
service
:
name=rabbitmq-server state=stopped arguments="{{ STOP_ALL_EDX_SERVICES_EXTRA_ARGS }}"
service
:
name
:
rabbitmq-server
state
:
stopped
arguments
:
"
{{
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
}}"
-
name
:
stop mysql
service
:
name=mysql state=stopped arguments="{{ STOP_ALL_EDX_SERVICES_EXTRA_ARGS }}"
service
:
name
:
mysql
state
:
stopped
arguments
:
"
{{
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
}}"
-
name
:
stop memcached
service
:
name=memcached state=stopped arguments="{{ STOP_ALL_EDX_SERVICES_EXTRA_ARGS }}"
service
:
name
:
memcached
state
:
stopped
arguments
:
"
{{
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
}}"
-
name
:
stop mongodb
service
:
name=mongodb state=stopped arguments="{{ STOP_ALL_EDX_SERVICES_EXTRA_ARGS }}"
service
:
name
:
mongodb
state
:
stopped
arguments
:
"
{{
STOP_ALL_EDX_SERVICES_EXTRA_ARGS
}}"
# Celery and Supervisord should not be killed because they may have long running tasks that need to finish
-
name
:
kill processes by user
...
...
playbooks/roles/stop_all_edx_services/tasks/main.yml
View file @
30ed75b6
...
...
@@ -22,35 +22,45 @@
# - stop_all_edx_services
#
#
-
name
:
stop supervisor
stat
:
path=/etc/init/supervisor.conf
-
name
:
Stop supervisor
stat
:
path
:
/etc/init/supervisor.conf
register
:
stat_out
changed_when
:
stat_out is defined and stat_out.stat.exists
notify
:
stop supervisor
notify
:
-
stop supervisor
-
name
:
stop nginx
stat
:
path=/etc/init.d/nginx
-
name
:
Stop nginx
stat
:
path
:
/etc/init.d/nginx
register
:
stat_out
changed_when
:
stat_out is defined and stat_out.stat.exists
notify
:
stop nginx
notify
:
-
stop nginx
-
name
:
stop rabbitmq-server
stat
:
path=/etc/init.d/rabbitmq-server
-
name
:
Stop rabbitmq-server
stat
:
path
:
/etc/init.d/rabbitmq-server
register
:
stat_out
changed_when
:
stat_out is defined and stat_out.stat.exists
notify
:
stop rabbitmq-server
notify
:
-
stop rabbitmq-server
-
name
:
stop memcached
stat
:
path=/etc/init.d/memcached
-
name
:
Stop memcached
stat
:
path
:
/etc/init.d/memcached
register
:
stat_out
changed_when
:
stat_out is defined and stat_out.stat.exists
notify
:
stop memcached
notify
:
-
stop memcached
-
name
:
stop mongodb
stat
:
path=/etc/init.d/mongodb
-
name
:
Stop mongodb
stat
:
path
:
/etc/init.d/mongodb
register
:
stat_out
changed_when
:
stat_out is defined and stat_out.stat.exists
notify
:
stop mongodb
notify
:
-
stop mongodb
-
shell
:
"
true"
notify
:
kill processes by user
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