fix(podman_keycloak): allow override of podman username

This commit is contained in:
Iain Learmonth 2025-11-30 15:02:16 +00:00
parent f65ad3fce2
commit 57c58eb26a

View file

@ -4,7 +4,7 @@
role: sr2c.core.podman_host
vars:
podman_host_minimum_unpriv_port: 80
podman_host_rootless_users: ["keycloak"]
podman_host_rootless_users: ["{{ podman_keycloak_podman_rootless_user }}"]
- name: Podman Keycloak | PATCH | Enable http service with firewalld
ansible.posix.firewalld:
@ -22,7 +22,6 @@
permanent: true
zone: public
# TODO: These will be relabelled by podman but in the future we should label them from the start
- name: Podman Keycloak | PATCH | Create service configuration directories
ansible.builtin.file:
path: "/home/{{ podman_keycloak_podman_rootless_user }}/{{ item }}"
@ -45,7 +44,7 @@
with_items: "{{ podman_keycloak_keycloak_providers }}"
become: true
become_user: "{{ podman_keycloak_podman_rootless_user }}"
notify: restart keycloak
notify: Restart keycloak
- name: Podman Keycloak | PATCH | Install systemd target
ansible.builtin.template:
@ -142,7 +141,7 @@
group: "{{ podman_keycloak_podman_rootless_user }}"
mode: "0644"
become: true
notify: restart nginx
notify: Restart nginx
- name: Podman Keycloak | PATCH | Configure the LDAP directory
ansible.builtin.include_tasks: