Skip to content

Commit

Permalink
restart apache when keycloak config changed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdjscott committed Sep 5, 2023
1 parent 8cbd152 commit d6e9be0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
5 changes: 0 additions & 5 deletions roles/keycloak/files/keycloak-proxy-config.cli

This file was deleted.

2 changes: 1 addition & 1 deletion roles/keycloak/files/keycloak.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
Type=idle
User=keycloak
Group=keycloak
ExecStart=/opt/keycloak-22.0.1/bin/kc.sh start --hostname-strict=false --http-enabled=true
ExecStart=/opt/keycloak-22.0.1/bin/kc.sh start --hostname-strict=false --http-enabled=true --proxy=edge --hostname=ood-idp.flexi.nesi
EnvironmentFile=/etc/default/keycloak
TimeoutStartSec=600
TimeoutStopSec=600
Expand Down
7 changes: 1 addition & 6 deletions roles/keycloak/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,14 @@
owner: root
group: root
mode: '600'
- name: Keycloak proxy configuration
lineinfile:
path: /opt/keycloak-22.0.1/conf/keycloak.conf
line: proxy=edge
owner: keycloak
group: keycloak
- name: Copy keycloak system service file
copy:
src: keycloak.service
dest: /etc/systemd/system/keycloak.service
owner: root
group: root
register: keycloak_service_file
notify: restart apache
- name: Restart keycloak service
systemd:
name: keycloak
Expand Down

0 comments on commit d6e9be0

Please sign in to comment.