mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-06 10:50:31 -07:00
ci: linter
This commit is contained in:
parent
007094ab5b
commit
7abdd83ea4
9 changed files with 8 additions and 18 deletions
|
@ -29,6 +29,7 @@ warn_list:
|
||||||
- name[template]
|
- name[template]
|
||||||
- name[casing]
|
- name[casing]
|
||||||
- fqcn[action]
|
- fqcn[action]
|
||||||
|
- schema[meta]
|
||||||
|
|
||||||
skip_list:
|
skip_list:
|
||||||
- vars_should_not_be_used
|
- vars_should_not_be_used
|
||||||
|
|
|
@ -3,7 +3,5 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
vars:
|
vars:
|
||||||
keycloak_admin_password: "remembertochangeme"
|
keycloak_admin_password: "remembertochangeme"
|
||||||
collections:
|
|
||||||
- middleware_automation.keycloak
|
|
||||||
roles:
|
roles:
|
||||||
- keycloak
|
- middleware_automation.keycloak.keycloak
|
||||||
|
|
|
@ -9,7 +9,5 @@
|
||||||
keycloak_quarkus_https_enabled: True
|
keycloak_quarkus_https_enabled: True
|
||||||
keycloak_quarkus_key_file: conf/key.pem
|
keycloak_quarkus_key_file: conf/key.pem
|
||||||
keycloak_quarkus_cert_file: conf/cert.pem
|
keycloak_quarkus_cert_file: conf/cert.pem
|
||||||
collections:
|
|
||||||
- middleware_automation.keycloak
|
|
||||||
roles:
|
roles:
|
||||||
- keycloak_quarkus
|
- middleware_automation.keycloak.keycloak_quarkus
|
||||||
|
|
|
@ -22,7 +22,5 @@
|
||||||
- client: TestClient1
|
- client: TestClient1
|
||||||
role: TestClient1User
|
role: TestClient1User
|
||||||
realm: "{{ keycloak_realm }}"
|
realm: "{{ keycloak_realm }}"
|
||||||
collections:
|
|
||||||
- middleware_automation.keycloak
|
|
||||||
roles:
|
roles:
|
||||||
- keycloak_realm
|
- middleware_automation.keycloak.keycloak_realm
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
vars:
|
vars:
|
||||||
keycloak_admin_password: "remembertochangeme"
|
keycloak_admin_password: "remembertochangeme"
|
||||||
sso_enable: True
|
sso_enable: True
|
||||||
collections:
|
|
||||||
- middleware_automation.redhat_csp_download
|
|
||||||
- middleware_automation.keycloak
|
|
||||||
roles:
|
roles:
|
||||||
- middleware_automation.redhat_csp_download.redhat_csp_download
|
- middleware_automation.redhat_csp_download.redhat_csp_download
|
||||||
- middleware_automation.keycloak.keycloak
|
- middleware_automation.keycloak.keycloak
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
register: existing_deploy
|
register: existing_deploy
|
||||||
|
|
||||||
- name: Stop and restart if existing deployment exists and install forced
|
- name: Stop and restart if existing deployment exists and install forced
|
||||||
|
when: existing_deploy.stat.exists and keycloak_force_install | bool
|
||||||
block:
|
block:
|
||||||
- name: "Stop the old {{ keycloak.service_name }} service"
|
- name: "Stop the old {{ keycloak.service_name }} service"
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -29,7 +30,6 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ keycloak_jboss_home }}"
|
path: "{{ keycloak_jboss_home }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: existing_deploy.stat.exists and keycloak_force_install|bool
|
|
||||||
|
|
||||||
- name: Check for an existing deployment after possible forced removal
|
- name: Check for an existing deployment after possible forced removal
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -185,7 +185,7 @@
|
||||||
mode: 0640
|
mode: 0640
|
||||||
notify:
|
notify:
|
||||||
- restart keycloak
|
- restart keycloak
|
||||||
when: not keycloak_remotecache.enabled or keycloak_config_override_template|length > 0
|
when: not keycloak_remotecache.enabled or keycloak_config_override_template | length > 0
|
||||||
|
|
||||||
- name: "Deploy {{ keycloak.service_name }} config with remote cache store to {{ keycloak_config_path_to_standalone_xml }}"
|
- name: "Deploy {{ keycloak.service_name }} config with remote cache store to {{ keycloak_config_path_to_standalone_xml }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
|
@ -46,7 +46,7 @@ keycloak_jdbc:
|
||||||
driver_jar_filename: "mariadb-java-client-{{ keycloak_jdbc_driver_version }}.jar"
|
driver_jar_filename: "mariadb-java-client-{{ keycloak_jdbc_driver_version }}.jar"
|
||||||
driver_jar_url: "https://repo1.maven.org/maven2/org/mariadb/jdbc/mariadb-java-client/{{ keycloak_jdbc_driver_version }}/mariadb-java-client-{{ keycloak_jdbc_driver_version }}.jar"
|
driver_jar_url: "https://repo1.maven.org/maven2/org/mariadb/jdbc/mariadb-java-client/{{ keycloak_jdbc_driver_version }}/mariadb-java-client-{{ keycloak_jdbc_driver_version }}.jar"
|
||||||
connection_url: "{{ keycloak_jdbc_url }}"
|
connection_url: "{{ keycloak_jdbc_url }}"
|
||||||
db_user: "{{ keycloak_db_user }}"
|
db_user: "{{ keycloak_db_user }}"
|
||||||
db_password: "{{ keycloak_db_pass }}"
|
db_password: "{{ keycloak_db_pass }}"
|
||||||
initialize_db: >
|
initialize_db: >
|
||||||
CREATE TABLE IF NOT EXISTS JGROUPSPING (
|
CREATE TABLE IF NOT EXISTS JGROUPSPING (
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
---
|
---
|
||||||
collections:
|
|
||||||
|
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
role_name: keycloak_quarkus
|
role_name: keycloak_quarkus
|
||||||
namespace: middleware_automation
|
namespace: middleware_automation
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "{{ keycloak_url }}{{ keycloak_context }}/admin/realms"
|
url: "{{ keycloak_url }}{{ keycloak_context }}/admin/realms"
|
||||||
method: POST
|
method: POST
|
||||||
body: "{{ lookup('template','realm.json.j2') }}"
|
body: "{{ lookup('template', 'realm.json.j2') }}"
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
body_format: json
|
body_format: json
|
||||||
headers:
|
headers:
|
||||||
|
|
Loading…
Add table
Reference in a new issue