Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
54256caa
Commit
54256caa
authored
5 years ago
by
S M Y
Browse files
Options
Download
Patches
Plain Diff
Reloading proxy after player deployment
parent
1a4388a8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/stack-sunbird/tasks/service_stack.yml
+13
-0
ansible/roles/stack-sunbird/tasks/service_stack.yml
with
13 additions
and
0 deletions
+13
-0
ansible/roles/stack-sunbird/tasks/service_stack.yml
+
13
−
0
View file @
54256caa
...
...
@@ -35,3 +35,16 @@
shell
:
docker service update --config-add source=index_cdn.ejs,target=/home/sunbird/app_dist/dist/index_cdn.ejs player_player
when
:
sunbird_portal_cdn_url is not none and cdn_file_path is not none
-
name
:
sleep for 40 seconds for portal docker image to be up and running
pause
:
seconds
:
40
-
name
:
Getting the list of proxy services host details
shell
:
"
getent
hosts
$(docker
service
ps
proxy_proxy
|
grep
Runn
|
awk
'{print
$4}')
|
cut
-d
\"
\"
-f1
|
grep
-v
f
"
register
:
proxy_details
-
name
:
reload proxy containers configurations
shell
:
"
docker
ps
|
grep
proxy_proxy
|
awk
'{print
$1}'
|
xargs
-I
%
docker
exec
%
nginx
-s
reload;"
delegate_to
:
"
{{item}}"
with_items
:
"
{{(proxy_details.stdout_lines)|list}}"
register
:
proxy_out
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets