Skip to content

Commit

Permalink
Issue Sunbird-Lern#24 chore:Sunbird auth package build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahghatol committed Dec 29, 2017
1 parent 7ce3002 commit fb31a74
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions keycloak/scripts/ansible/roles/keycloak/tasks/deploy-config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
- name: status service
become: yes
command: /etc/init.d/keycloak status
register: keycloak
poll: 5
async: 10

- name: stop service
become: yes
command: /etc/init.d/keycloak stop && Pkill keycloak
when: "keycloak.stdout.find('running') != -1"
poll: 5
async: 10
ignore_errors: yes

- name: Paste keycloak config package on server
copy: src="sunbird_auth_{{sunbird_auth_version}}.config.zip" dest="/tmp/" force=no owner={{wildfly_user}} group={{wildfly_group}}

Expand Down Expand Up @@ -46,3 +61,9 @@
file:
path: "/tmp/sunbird_auth_{{sunbird_auth_version}}.config.zip"
state: absent

- name: start service
become: yes
command: /etc/init.d/keycloak start
poll: 5
async: 5

0 comments on commit fb31a74

Please sign in to comment.