mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-09-29 13:03:31 -07:00
move admin pwd param from vars to defaults, add assert
This commit is contained in:
parent
6270762a3a
commit
a67081a68d
5 changed files with 17 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Ensures required package firewalld are installed
|
||||
- name: Ensure required package firewalld are installed
|
||||
ansible.builtin.include_tasks: fastpackages.yml
|
||||
vars:
|
||||
packages_list:
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
---
|
||||
- name: Validate admin console password
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- keycloak_admin_password | length > 12
|
||||
quiet: True
|
||||
fail_msg: "The console administrator password is empty or invalid. Please set the keycloak_admin_password variable to a 16+ char long string"
|
||||
success_msg: "{{ 'Console administrator password OK' }}"
|
||||
|
||||
- name: Validate configuration
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
|
@ -16,7 +24,7 @@
|
|||
fail_msg: "Cannot install Red Hat SSO without RHN credentials. Check rhn_username and rhn_password are defined"
|
||||
success_msg: "{{ 'Installing Red Hat Single Sign-On' if keycloak_rhsso_enable else 'Installing keycloak.org' }}"
|
||||
|
||||
- name: Ensures required packages are installed
|
||||
- name: Ensure required packages are installed
|
||||
ansible.builtin.include_tasks: fastpackages.yml
|
||||
vars:
|
||||
packages_list:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue