diff --git a/.ansible-lint b/.ansible-lint index eef1f63..5472a97 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -16,12 +16,14 @@ enable_list: warn_list: - role_vars_start_with_role_name - vars_in_vars_files_have_valid_names - - vars_should_not_be_used - experimental - ignore-errors - no-handler - fqcn-builtins - no-log-password +skip_list: + - vars_should_not_be_used + use_default_rules: true parseable: true diff --git a/roles/keycloak/tasks/fastpackages.yml b/roles/keycloak/tasks/fastpackages.yml index 29155f9..78bc556 100644 --- a/roles/keycloak/tasks/fastpackages.yml +++ b/roles/keycloak/tasks/fastpackages.yml @@ -1,5 +1,6 @@ --- -- block: +- name: Check packages to be installed + block: - name: "Check if packages are already installed" ansible.builtin.command: "rpm -q {{ packages_list | join(' ') }}" args: diff --git a/roles/keycloak/tasks/install.yml b/roles/keycloak/tasks/install.yml index 861bca0..26c5466 100644 --- a/roles/keycloak/tasks/install.yml +++ b/roles/keycloak/tasks/install.yml @@ -16,7 +16,8 @@ path: "{{ keycloak_jboss_home }}" register: existing_deploy -- block: +- name: Stop and restart if existing deployment exists and install forced + block: - name: "Stop the old {{ keycloak.service_name }} service" become: yes ignore_errors: yes diff --git a/roles/keycloak/tasks/main.yml b/roles/keycloak/tasks/main.yml index c16f6cb..ba5ec87 100644 --- a/roles/keycloak/tasks/main.yml +++ b/roles/keycloak/tasks/main.yml @@ -35,7 +35,8 @@ src: "{{ keycloak_jboss_home }}/standalone/log" dest: /var/log/keycloak -- block: +- name: Set admin credentials and restart if not already created + block: - name: Check admin credentials by generating a token (supposed to fail on first installation) ansible.builtin.uri: url: "{{ keycloak_url }}/auth/realms/master/protocol/openid-connect/token" diff --git a/roles/keycloak/vars/main.yml b/roles/keycloak/vars/main.yml index f639970..5a6b059 100644 --- a/roles/keycloak/vars/main.yml +++ b/roles/keycloak/vars/main.yml @@ -1,7 +1,7 @@ --- # internal variables below rhsso_rhn_ids: - '7.5.0': + '7.5.0': # noqa vars_in_vars_files_have_valid_names id: '101971' latest_cp: id: '103836' diff --git a/roles/keycloak_quarkus/tasks/fastpackages.yml b/roles/keycloak_quarkus/tasks/fastpackages.yml index 29155f9..78bc556 100644 --- a/roles/keycloak_quarkus/tasks/fastpackages.yml +++ b/roles/keycloak_quarkus/tasks/fastpackages.yml @@ -1,5 +1,6 @@ --- -- block: +- name: Check packages to be installed + block: - name: "Check if packages are already installed" ansible.builtin.command: "rpm -q {{ packages_list | join(' ') }}" args: