From 2f88ad1371b2dcb75f9735532a786194498c8474 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 19 Jun 2020 14:07:15 +0200 Subject: [PATCH] Fix some typos. --- README.md | 17 +++++++++++++---- tasks/main.yml | 10 +++++----- vars/main.yml | 8 ++++---- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 4bd2746..162a556 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Role Name ========= -A role that +A role that installs the Keycloack IdM 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 ------- diff --git a/tasks/main.yml b/tasks/main.yml index 22e2826..cca8d58 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/vars/main.yml b/vars/main.yml index 960b8e3..76116d7 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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