Fix some typos.

This commit is contained in:
Andrea Dell'Amico 2020-06-19 14:07:15 +02:00
parent 24b1405e8c
commit 2f88ad1371
3 changed files with 22 additions and 13 deletions

View File

@ -1,7 +1,7 @@
Role Name
=========
A role that
A role that installs the Keycloack IdM <https://keycloack.org>
Role Variables
--------------
@ -9,14 +9,23 @@ Role Variables
The most important variables are listed below:
``` yaml
users_system_users:
- { login: 'foo', name: "Foo Bar", home: '{{ users_home_dir }}', createhome: 'yes', ssh_key: '{{ foo_ssh_key }}', shell: '/bin/bash', admin: False, log_as_root: False }
keycloack_major_version: '10'
keycloack_minor_version: '0'
keycloack_point_version: '2'
keycloack_install_dir: '/opt/keycloack'
keycloack_log_directory: '/var/log/keycloack'
# domain clustered mode is not supported at this time
keycloack_wildfly_mode: 'standalone'
keycloack_wildfly_clustered: False
keycloack_listen: '127.0.0.1'
keycloack_java_min_heap: '2048m'
keycloack_java_max_heap: '{{ keycloack_java_min_heap }}'
```
Dependencies
------------
None
OpenJDK
License
-------

View File

@ -10,23 +10,23 @@
- name: Download the Keycloack distribution
unarchive: remote_src=yes src={{ keycloack_download_url }} dest={{ keycloack_install_dir }} owner=root group=root
args:
creates: '{{ keycloack_install_dir }}/{{ keyclock_distribution }}'
creates: '{{ keycloack_install_dir }}/{{ keycloack_distribution }}'
- name: Create the Keycloack log directory
file: dest={{ keycloack_log_directory }} state=directory owner={{ keycloack_user }} group={{ keycloack_user }} mode='0755'
- name: Fix the permissions of some Keycloack directories
file: dest={{ keycloack_install_dir }}/{{ keyclock_distribution }}/{{ keycloack_wildfly_mode }}/{{ item }} state=directory owner={{ keycloack_user }} group={{ keycloack_user }} mode='0755'
file: dest={{ keycloack_install_dir }}/{{ keycloack_distribution }}/{{ keycloack_wildfly_mode }}/{{ item }} state=directory owner={{ keycloack_user }} group={{ keycloack_user }} mode='0755'
with_items: '{{ keycloack_owned_directories }}'
- name: Remove the log directory inside the Keycloack distribution
file: dest={{ keycloack_install_dir }}/{{ keyclock_distribution }}/{{ keycloack_wildfly_mode }}/log state=absent
file: dest={{ keycloack_install_dir }}/{{ keycloack_distribution }}/{{ keycloack_wildfly_mode }}/log state=absent
- name: Remove the log directory inside the Keycloack distribution
file: dest={{ keycloack_install_dir }}/{{ keyclock_distribution }}/{{ keycloack_wildfly_mode }}/log state=absent
file: dest={{ keycloack_install_dir }}/{{ keycloack_distribution }}/{{ keycloack_wildfly_mode }}/log state=absent
- name: Link to the external log directory
file: src={{ keycloack_log_directory }} dest={{ keycloack_install_dir }}/{{ keyclock_distribution }}/{{ keycloack_wildfly_mode }}/log state=link
file: src={{ keycloack_log_directory }} dest={{ keycloack_install_dir }}/{{ keycloack_distribution }}/{{ keycloack_wildfly_mode }}/log state=link
tags: keycloack

View File

@ -5,10 +5,10 @@ openjdk_pkgs:
keycloack_user: 'keycloack'
keycloack_version: '{{ keycloack_major_version }}.{{ keycloack_minor_version }}.{{ keycloack_point_version }}'
keyclock_distribution: 'keycloak-{{ keycloack_version }}'
keyclock_distribution_archive: '{{ keycloack_distribution }}.tar.gz'
keycloack_download_url: 'https://downloads.jboss.org/keycloak/{{ keycloack_version }}/{{ keyclock_distribution_archive }}'
keycloack_runtime_home: '{{ keycloack_install_dir }}/{{ keyclock_distribution }}'
keycloack_distribution: 'keycloak-{{ keycloack_version }}'
keycloack_distribution_archive: '{{ keycloack_distribution }}.tar.gz'
keycloack_download_url: 'https://downloads.jboss.org/keycloak/{{ keycloack_version }}/{{ keycloack_distribution_archive }}'
keycloack_runtime_home: '{{ keycloack_install_dir }}/{{ keycloack_distribution }}'
keycloack_owned_directories:
- data
- tmp