Skip to content

Commit

Permalink
Merge pull request #6 from punktDe/freebsd-fix-user
Browse files Browse the repository at this point in the history
Force Keycloak to run under www user instead of keycloak (FreeBSD Proserver)
  • Loading branch information
medanthelinium authored May 23, 2024
2 parents 2f3d9fd + 4de8ac6 commit 311a3be
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@
dest: "{{ keycloak.prefix.config }}/conf/keycloak.conf"
owner: root
mode: "0644"

- name: Make sure the rc.conf.d folder exists
when: ansible_system == "FreeBSD"
ansible.builtin.file:
dest: "/usr/local/etc/rc.conf.d"
owner: root
mode: "0755"

- name: Force Keycloak to use www user
when: ansible_system == "FreeBSD"
ansible.builtin.lineinfile:
create: yes
state: present
dest: "/usr/local/etc/rc.conf.d/keycloak"
line: "keycloak_user=www"
mode: "0644"
owner: root

0 comments on commit 311a3be

Please sign in to comment.