https://github.com/informaticsmatters/ansible-role-infrastructure-user
https://github.com/informaticsmatters/ansible-role-infrastructure-user
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/informaticsmatters/ansible-role-infrastructure-user
- Owner: InformaticsMatters
- License: apache-2.0
- Created: 2020-01-16T16:05:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-26T14:09:08.000Z (7 months ago)
- Last Synced: 2025-11-29T03:23:27.003Z (7 months ago)
- Language: Jinja
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role - informaticsmatters.infrastructure_user
=====================================================



[](https://www.codefactor.io/repository/github/informaticsmatters/ansible-role-infrastructure-user)
A Kubernetes-based Role for the configuration of a pre-deployed infrastructure.
This role provides actions to add and remove Keycloak users in the
infrastructure deployment.
Requirements
------------
- None
Role Variables
--------------
# The role action.
# One of 'create' or 'delete', used in conjunction with 'iu_type'
iu_action: create
# The type of item to create,
# One of 'realm', 'role' or 'user'
iu_type: user
# The Keycloak hostname (https:// is assumed)
iu_hostname: example.com
# The Realm, realm manager and manager's password.
# The manager user is 'manager' by default
# and password is randomly generated if not supplied.
iu_realm: ''
iu_realm_manager: 'manager'
iu_realm_manager_password: "{{ lookup('password', '/dev/null length=14 chars=ascii_letters,digits') }}"
# The namespace of the Keycloak's instance,
# required if creating or deleting a realm.
iu_namespace: ''
# The keycloak admin user name and password
# (required to create and delete realms)
iu_admin: admin
iu_admin_password: ''
# A list of users to add to a realm.
# Used when 'iu_type' is 'user'.
# The list contains usernames and passwords: -
#
# iu_users:
# - username: alan
# password: blob1234
# - username: nala
# password: blob5678
iu_users: []
# A list of roles to add to an existing realm.
# Used when 'iu_type' is 'role'.
# It is simply a list of role names: -
#
# iu_roles:
# - name: standard-user
# default: yes
iu_roles: []
Dependencies
------------
- (none)
Example Playbook
----------------
**NOTE** The example below assumes that you have a Keycloak installation.
- hosts: servers
tasks:
- include_role:
name: informaticsmatters.infrastructure_config
vars:
iu_action: create
iu_type: user
iu_hostname: keycloak.example.com
iu_realm: my-realm
iu_realm_manager: manager
iu_realm_manager_password: abc0000000
iu_users:
- username: alan
password: blob1234
License
-------
Apache 2.0 License
Author Information
------------------
alanbchristie