mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-12-02 18:53:40 +00:00
Compare commits
2 Commits
2b74ceba84
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9425a79b4 | ||
|
|
f8f71ef9f0 |
@@ -16,8 +16,8 @@
|
|||||||
<!-- Link: Preconnect & DNS Prefetch & Preload -->
|
<!-- Link: Preconnect & DNS Prefetch & Preload -->
|
||||||
<link rel="preconnect" href="//cdn.waren.io">
|
<link rel="preconnect" href="//cdn.waren.io">
|
||||||
<link rel="dns-prefetch" href="//cdn.waren.io">
|
<link rel="dns-prefetch" href="//cdn.waren.io">
|
||||||
<link rel="preload" as="style" href="https://cdn.waren.io/frameworks/font-awesome/7.0.0/css/all.min.css" crossorigin="anonymous">
|
<link rel="preload" as="style" href="https://cdn.waren.io/frameworks/font-awesome/7.1.0/css/all.min.css" crossorigin="anonymous">
|
||||||
<link rel="preload" as="font" type="font/woff2" href="https://cdn.waren.io/frameworks/font-awesome/7.0.0/webfonts/fa-solid-900.woff2" crossorigin="anonymous">
|
<link rel="preload" as="font" type="font/woff2" href="https://cdn.waren.io/frameworks/font-awesome/7.1.0/webfonts/fa-solid-900.woff2" crossorigin="anonymous">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Link: CSS -->
|
<!-- Link: CSS -->
|
||||||
<link rel="stylesheet" href="https://cdn.waren.io/frameworks/font-awesome/7.0.0/css/all.min.css" crossorigin="anonymous" media="screen">
|
<link rel="stylesheet" href="https://cdn.waren.io/frameworks/font-awesome/7.1.0/css/all.min.css" crossorigin="anonymous" media="screen">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -913,6 +913,24 @@
|
|||||||
- keycloak
|
- keycloak
|
||||||
- sso
|
- sso
|
||||||
|
|
||||||
|
- name: "Deployer - Keacloak - Configure - Groups : Create"
|
||||||
|
community.general.keycloak_group:
|
||||||
|
auth_keycloak_url: "http://127.0.0.1:8080"
|
||||||
|
auth_realm: master
|
||||||
|
auth_username: "{{ config.keycloak.users.admin.username }}"
|
||||||
|
auth_password: "{{ config.keycloak.users.admin.password }}"
|
||||||
|
realm: "master"
|
||||||
|
name: "{{ group }}"
|
||||||
|
vars:
|
||||||
|
task_vars:
|
||||||
|
groups:
|
||||||
|
- admin
|
||||||
|
- users
|
||||||
|
loop: "{{ task_vars.groups }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ group }}"
|
||||||
|
loop_var: group
|
||||||
|
|
||||||
- name: "Deployer - Keacloak - Configure - Users : Create"
|
- name: "Deployer - Keacloak - Configure - Users : Create"
|
||||||
community.general.keycloak_user:
|
community.general.keycloak_user:
|
||||||
auth_keycloak_url: "http://127.0.0.1:8080"
|
auth_keycloak_url: "http://127.0.0.1:8080"
|
||||||
@@ -927,6 +945,7 @@
|
|||||||
- type: password
|
- type: password
|
||||||
value: "{{ config.keycloak.users[username].password }}"
|
value: "{{ config.keycloak.users[username].password }}"
|
||||||
temporary: false
|
temporary: false
|
||||||
|
groups: "{{ config.keycloak.users[username].groups | map('regex_replace', '^(.*)$', '{\"name\": \"\\1\", \"state\": \"present\"}') | map('from_json') | list }}"
|
||||||
enabled: on
|
enabled: on
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ config.keycloak.users.keys() | list }}"
|
loop: "{{ config.keycloak.users.keys() | list }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user