Skip to content

Commit 0d0e52f

Browse files
Merge pull request #250 from world-direct/feature/249
Rebuild config and restart service for local providers
2 parents 333d55a + 68a0f88 commit 0d0e52f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

roles/keycloak_quarkus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ keycloak_quarkus_providers:
200200
- id: http-client # required; "{{ id }}.jar" identifies the file name on RHBK
201201
spi: connections # required if neither url, local_path nor maven are specified; required for setting properties
202202
default: true # optional, whether to set default for spi, default false
203-
restart: true # optional, whether to restart, default true
203+
restart: true # optional, whether to rebuild config and restart the service after deploying, default true
204204
url: https://.../.../custom_spi.jar # optional, url for download via http
205205
local_path: my_theme_spi.jar # optional, path on local controller for SPI to be uploaded
206206
maven: # optional, for download using maven

roles/keycloak_quarkus/tasks/install.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
become: true
219219
loop: "{{ keycloak_quarkus_providers }}"
220220
when: item.url is defined and item.url | length > 0
221-
notify: "{{ ['rebuild keycloak config', 'restart keycloak'] if not item.restart is defined or not item.restart else [] }}"
221+
notify: "{{ ['rebuild keycloak config', 'restart keycloak'] if not item.restart is defined or item.restart else [] }}"
222222

223223
# this requires the `lxml` package to be installed; we redirect this step to localhost such that we do need to install it on the remote hosts
224224
- name: "Download custom providers to localhost using maven"
@@ -235,7 +235,7 @@
235235
loop: "{{ keycloak_quarkus_providers }}"
236236
when: item.maven is defined
237237
no_log: "{{ item.maven.password is defined and item.maven.password | length > 0 | default(false) }}"
238-
notify: "{{ ['rebuild keycloak config', 'restart keycloak'] if not item.restart is defined or not item.restart else [] }}"
238+
notify: "{{ ['rebuild keycloak config', 'restart keycloak'] if not item.restart is defined or item.restart else [] }}"
239239

240240
- name: "Copy maven providers"
241241
ansible.builtin.copy:
@@ -249,7 +249,7 @@
249249
when: item.maven is defined
250250
no_log: "{{ item.maven.password is defined and item.maven.password | length > 0 | default(false) }}"
251251

252-
- name: "Copy providers"
252+
- name: "Copy local providers"
253253
ansible.builtin.copy:
254254
src: "{{ item.local_path }}"
255255
dest: "{{ keycloak.home }}/providers/{{ item.id }}.jar"
@@ -259,6 +259,7 @@
259259
become: true
260260
loop: "{{ keycloak_quarkus_providers }}"
261261
when: item.local_path is defined
262+
notify: "{{ ['rebuild keycloak config', 'restart keycloak'] if not item.restart is defined or item.restart else [] }}"
262263

263264
- name: Ensure required folder structure for policies exists
264265
ansible.builtin.file:

0 commit comments

Comments
 (0)