Commit 54256caa authored by S M Y's avatar S M Y
Browse files

Reloading proxy after player deployment

parent 1a4388a8
No related merge requests found
Showing with 13 additions and 0 deletions
+13 -0
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment