move admin pwd param from vars to defaults, add assert
parent
6270762a3a
commit
a67081a68d
|
@ -32,6 +32,9 @@ keycloak_service_group: keycloak
|
||||||
keycloak_service_pidfile: "/run/keycloak.pid"
|
keycloak_service_pidfile: "/run/keycloak.pid"
|
||||||
keycloak_configure_firewalld: False
|
keycloak_configure_firewalld: False
|
||||||
|
|
||||||
|
### administrator console password
|
||||||
|
keycloak_admin_password: ''
|
||||||
|
|
||||||
### Common configuration settings
|
### Common configuration settings
|
||||||
keycloak_bind_address: 0.0.0.0
|
keycloak_bind_address: 0.0.0.0
|
||||||
keycloak_host: localhost
|
keycloak_host: localhost
|
||||||
|
|
|
@ -23,5 +23,7 @@ galaxy_info:
|
||||||
- keycloak
|
- keycloak
|
||||||
- redhat
|
- redhat
|
||||||
- rhel
|
- rhel
|
||||||
- rhn
|
- sso
|
||||||
- sso
|
- authentication
|
||||||
|
- identity
|
||||||
|
- security
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: Ensures required package firewalld are installed
|
- name: Ensure required package firewalld are installed
|
||||||
ansible.builtin.include_tasks: fastpackages.yml
|
ansible.builtin.include_tasks: fastpackages.yml
|
||||||
vars:
|
vars:
|
||||||
packages_list:
|
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
|
- name: Validate configuration
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
|
@ -16,7 +24,7 @@
|
||||||
fail_msg: "Cannot install Red Hat SSO without RHN credentials. Check rhn_username and rhn_password are defined"
|
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' }}"
|
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
|
ansible.builtin.include_tasks: fastpackages.yml
|
||||||
vars:
|
vars:
|
||||||
packages_list:
|
packages_list:
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
---
|
---
|
||||||
# required variables for keycloak
|
|
||||||
# administrator console password
|
|
||||||
keycloak_admin_password:
|
|
||||||
|
|
||||||
# internal variables below
|
# internal variables below
|
||||||
rhsso_rhn_ids:
|
rhsso_rhn_ids:
|
||||||
'7.5.0':
|
'7.5.0':
|
||||||
|
|
Loading…
Reference in New Issue