diff --git a/.ansible-lint b/.ansible-lint index f9251eb..588eed7 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -26,6 +26,7 @@ warn_list: - jinja[spacing] - jinja[invalid] - meta-no-tags + - name[template] skip_list: - vars_should_not_be_used diff --git a/roles/keycloak/README.md b/roles/keycloak/README.md index 1f87464..7b0bd23 100644 --- a/roles/keycloak/README.md +++ b/roles/keycloak/README.md @@ -52,6 +52,7 @@ Role Defaults |`keycloak_db_enabled`| Enable auto configuration for database backend | `True` if `keycloak_ha_enabled` is True, else `False` | |`keycloak_admin_user`| Administration console user account | `admin` | |`keycloak_bind_address`| Address for binding service ports | `0.0.0.0` | +|`keycloak_management_port_bind_address`| Address for binding management ports | `127.0.0.1` | |`keycloak_host`| hostname | `localhost` | |`keycloak_http_port`| HTTP port | `8080` | |`keycloak_https_port`| TLS HTTP port | `8443` | diff --git a/roles/keycloak/defaults/main.yml b/roles/keycloak/defaults/main.yml index 291ff37..7bb3bb8 100644 --- a/roles/keycloak/defaults/main.yml +++ b/roles/keycloak/defaults/main.yml @@ -34,6 +34,7 @@ keycloak_http_port: 8080 keycloak_https_port: 8443 keycloak_ajp_port: 8009 keycloak_jgroups_port: 7600 +keycloak_management_port_bind_address: 127.0.0.1 keycloak_management_http_port: 9990 keycloak_management_https_port: 9993 keycloak_java_opts: "-Xms1024m -Xmx2048m" diff --git a/roles/keycloak/meta/argument_specs.yml b/roles/keycloak/meta/argument_specs.yml index f70a64a..29ebce8 100644 --- a/roles/keycloak/meta/argument_specs.yml +++ b/roles/keycloak/meta/argument_specs.yml @@ -94,6 +94,10 @@ argument_specs: default: "0.0.0.0" description: "Address for binding service ports" type: "str" + keycloak_management_port_bind_address: + default: "127.0.0.1" + description: "Address for binding the managemnt ports" + type: "str" keycloak_host: # line 35 of keycloak/defaults/main.yml default: "localhost" diff --git a/roles/keycloak/templates/standalone-infinispan.xml.j2 b/roles/keycloak/templates/standalone-infinispan.xml.j2 index 8e58b53..4198b83 100644 --- a/roles/keycloak/templates/standalone-infinispan.xml.j2 +++ b/roles/keycloak/templates/standalone-infinispan.xml.j2 @@ -724,7 +724,7 @@ - + {% if ansible_default_ipv4 is defined %} @@ -734,7 +734,7 @@ {% endif %} - + diff --git a/roles/keycloak/templates/standalone.xml.j2 b/roles/keycloak/templates/standalone.xml.j2 index 3207ef9..e2f6a76 100644 --- a/roles/keycloak/templates/standalone.xml.j2 +++ b/roles/keycloak/templates/standalone.xml.j2 @@ -632,10 +632,10 @@ - + - +