diff --git a/ansible/docker_image_push.yml b/ansible/docker_image_push.yml index a9bb19b231..5b0dc91f01 100644 --- a/ansible/docker_image_push.yml +++ b/ansible/docker_image_push.yml @@ -15,3 +15,7 @@ docker_image: name: "{{ hub_org }}/{{ image_name }}:{{ image_tag }}" push: yes + + - file: + path: "/root/.docker" + state: absent diff --git a/ansible/roles/stack-sunbird/tasks/cert_service.yml b/ansible/roles/stack-sunbird/tasks/cert_service.yml index 849e040e3a..3ef1092c34 100644 --- a/ansible/roles/stack-sunbird/tasks/cert_service.yml +++ b/ansible/roles/stack-sunbird/tasks/cert_service.yml @@ -1,7 +1,7 @@ --- -- name: Remove user org service +- name: Remove cert service shell: "docker service rm cert-service" ignore_errors: yes -- name: Deploy user org service +- name: Deploy cert service shell: "docker service create --with-registry-auth --replicas {{ cert_replicas }} -p 9011:9000 --name cert-service --hostname cert-service --reserve-memory {{ cert_reservation_memory }} --limit-memory {{ cert_limit_memory }} --limit-cpu {{ cert_limit_cpu }} --reserve-cpu {{ cert_reservation_cpu }} --network application_default --env-file /home/deployer/env/sunbird_cert-service.env {{hub_org}}/{{image_name}}:{{image_tag}}"