diff --git a/keycloak/scripts/ansible/roles/keycloak/tasks/deploy-conf.yml b/keycloak/scripts/ansible/roles/keycloak/tasks/deploy-conf.yml new file mode 100644 index 00000000..996cec5d --- /dev/null +++ b/keycloak/scripts/ansible/roles/keycloak/tasks/deploy-conf.yml @@ -0,0 +1,25 @@ +- name: Keycloak configuration XML file + template: + src:"roles/keycloak/templates/templates/standalone-ha.xml" + dest:"{{keycloak_home}}/standalone/configuration/standalone-ha.xml" + mode:0750 + +- name: Postgresql Configuration- module.xml + template: + src:"roles/keycloak/templates/templates/module.xml.j2" + dest:"{{keycloak_home}}/modules/system/layers/keycloak/org/postgresql/main/module.xml" + mode:0750 + +- name: Create directory for sms provider configuration + file: + path:"{{keycloak_home}}/bin/sms-provider" + state:directory + mode:0755 + +- name: SMS provider configuration file + template: + src:"roles/keycloak/templates/templates/Msg91Creds.json.j2" + dest:"{{keycloak_home}}/bin/sms-provider/Msg91Creds.json" + owner:"{{wildfly_user}}" + group:"{{wildfly_group}}" + mode:0755 diff --git a/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml b/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml index 51e08a8e..4e8c2b59 100644 --- a/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml +++ b/keycloak/scripts/ansible/roles/keycloak/tasks/main.yml @@ -5,3 +5,7 @@ - include: deploy.yml tags: - deploy + +- include: deploy-conf.yml + tags: + - deploy-conf