diff --git a/ansible/vars/default.yml b/ansible/vars/default.yml index b3717e8..5b46e6d 100644 --- a/ansible/vars/default.yml +++ b/ansible/vars/default.yml @@ -4,15 +4,18 @@ log_level: ERROR sram_urn_prefix: "urn:mace:surf.nl:sram:group" +ADMIN_GROUP: {{ lookup("ansible.builtin.env", "ADMIN_GROUP", default="") }} +USERS_GROUP: {{ lookup("ansible.builtin.env", "USERS_GROUP", default="*") }} + SRAM_URL: '{{ lookup("ansible.builtin.env", "SRAM_URL", default="https://sram.surf.nl") }}' SRAM_OIDC_BASE_URL: '{{ lookup("ansible.builtin.env", "SRAM_OIDC_BASE_URL", default="https://proxy.sram.surf.nl") }}' SRAM_OIDC_CLIENT_ID: '{{ lookup("ansible.builtin.env", "SRAM_OIDC_CLIENT_ID", default="") }}' SRAM_OIDC_CLIENT_SECRET: '{{ lookup("ansible.builtin.env", "SRAM_OIDC_CLIENT_SECRET", default="") }}' -SRAM_ADMIN_ACCESS_GROUP: '{{ sram_urn_prefix }}:{{ lookup("ansible.builtin.env", "SRAM_ADMIN_ACCESS_GROUP", default="") }}' SRAM_SERVICE_BEARER_TOKEN: '{{ lookup("ansible.builtin.env", "SRAM_SERVICE_BEARER_TOKEN", default="") }}' PROXY_ADMIN_PASSWORD: '{{ lookup("ansible.builtin.env", "PROXY_ADMIN_PASSWORD", default="admin") }}' -PAM_VALIDATE_USERS_ENTITLEMENT: '{{ sram_urn_prefix }}:{{ lookup("ansible.builtin.env", "PAM_VALIDATE_USERS_ENTITLEMENT", default="*") }}' +SRAM_ADMIN_ACCESS_GROUP: '{{ sram_urn_prefix }}:{{ ADMIN_GROUP }}' +PAM_VALIDATE_USERS_ENTITLEMENT: '{{ sram_urn_prefix }}:{{ USERS_GROUP }}'