update tests with pwd, apply change to keycloak_realm
This commit is contained in:
		
							parent
							
								
									d854791183
								
							
						
					
					
						commit
						85b0a2549a
					
				@ -2,17 +2,15 @@
 | 
				
			|||||||
- name: Converge
 | 
					- name: Converge
 | 
				
			||||||
  hosts: all
 | 
					  hosts: all
 | 
				
			||||||
  vars: 
 | 
					  vars: 
 | 
				
			||||||
 | 
					    keycloak_admin_password: "remembertochangeme"
 | 
				
			||||||
  tasks:
 | 
					  tasks:
 | 
				
			||||||
    - name: Include keycloak role
 | 
					    - name: Include keycloak role
 | 
				
			||||||
      include_role:
 | 
					      include_role:
 | 
				
			||||||
        name: ../../roles/keycloak
 | 
					        name: ../../roles/keycloak
 | 
				
			||||||
      vars:
 | 
					 | 
				
			||||||
        keycloak_admin_password: "changeme"
 | 
					 | 
				
			||||||
    - name: Keycloak Realm Role
 | 
					    - name: Keycloak Realm Role
 | 
				
			||||||
      include_role:
 | 
					      include_role:
 | 
				
			||||||
        name: ../../roles/keycloak_realm
 | 
					        name: ../../roles/keycloak_realm
 | 
				
			||||||
      vars:
 | 
					      vars:
 | 
				
			||||||
        keycloak_admin_password: "changeme"
 | 
					 | 
				
			||||||
        keycloak_client_default_roles:
 | 
					        keycloak_client_default_roles:
 | 
				
			||||||
          - TestRoleAdmin
 | 
					          - TestRoleAdmin
 | 
				
			||||||
          - TestRoleUser
 | 
					          - TestRoleUser
 | 
				
			||||||
 | 
				
			|||||||
@ -8,3 +8,4 @@
 | 
				
			|||||||
      ansible.builtin.assert:
 | 
					      ansible.builtin.assert:
 | 
				
			||||||
        that:
 | 
					        that:
 | 
				
			||||||
          - ansible_facts.services["keycloak.service"]["state"] == "running"
 | 
					          - ansible_facts.services["keycloak.service"]["state"] == "running"
 | 
				
			||||||
 | 
					          - ansible_facts.services["keycloak.service"]["status"] == "enabled"
 | 
				
			||||||
 | 
				
			|||||||
@ -30,8 +30,8 @@ The following are a set of _required_ variables for the role:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
| Variable | Description |
 | 
					| Variable | Description |
 | 
				
			||||||
|:---------|:------------|
 | 
					|:---------|:------------|
 | 
				
			||||||
|`keycloak_admin_password`| Password for the administration console user account |
 | 
					 | 
				
			||||||
|`keycloak_realm` | Name of the realm to be created |
 | 
					|`keycloak_realm` | Name of the realm to be created |
 | 
				
			||||||
 | 
					|`keycloak_admin_password`| Password for the administration console user account |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The following variables are available for creating clients:
 | 
					The following variables are available for creating clients:
 | 
				
			||||||
 | 
				
			|||||||
@ -11,6 +11,8 @@ keycloak_admin_user: admin
 | 
				
			|||||||
keycloak_auth_realm: master
 | 
					keycloak_auth_realm: master
 | 
				
			||||||
keycloak_auth_client: admin-cli
 | 
					keycloak_auth_client: admin-cli
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# administrator console password, this is a required variable
 | 
				
			||||||
 | 
					keycloak_admin_password: ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Keycloak realms, clients, roles, federation
 | 
					### Keycloak realms, clients, roles, federation
 | 
				
			||||||
# list of clients to create in the realm
 | 
					# list of clients to create in the realm
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,6 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
# vars file for keycloak_realm
 | 
					# vars file for keycloak_realm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# administrator console password, this is a required variable
 | 
					 | 
				
			||||||
keycloak_admin_password:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# name of the realm to create, this is a required variable
 | 
					# name of the realm to create, this is a required variable
 | 
				
			||||||
keycloak_realm:
 | 
					keycloak_realm:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user