-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ce4b4c
commit f32b43b
Showing
9 changed files
with
58 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
skip_list: | ||
- 'name[template]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
rules: | ||
line-length: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ dl_ver() { | |
printf " '%s': sha1:%s\n" $ver $(curl -sSLf $url) | ||
} | ||
|
||
dl_ver ${1:-22.0.1} | ||
dl_ver ${1:-24.0.2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: andrewrothstein.unarchivedeps | ||
version: 2.0.1 | ||
version: 3.0.2 | ||
- name: andrewrothstein.temurin | ||
version: 1.1.8 | ||
version: 2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,61 @@ | ||
--- | ||
- include_role: | ||
name: andrewrothstein.unarchive-deps | ||
- include_role: | ||
- name: Installing andrewrothstein.unarchivedeps | ||
ansible.builtin.include_role: | ||
name: andrewrothstein.unarchivedeps | ||
- name: Installing andrewrothstein.temurin | ||
ansible.builtin.include_role: | ||
name: andrewrothstein.temurin | ||
vars: | ||
openjdk_app: jre | ||
- name: check for existing install at {{ keycloak_install_dir }} | ||
temurin_app: jre | ||
- name: Check for existing install at {{ keycloak_install_dir }} | ||
become: true | ||
become_user: root | ||
stat: | ||
ansible.builtin.stat: | ||
path: '{{ keycloak_install_dir }}' | ||
changed_when: false | ||
register: keycloak_binary | ||
- when: not keycloak_binary.stat.exists | ||
- name: Downloading and installing keycloak | ||
when: not keycloak_binary.stat.exists | ||
block: | ||
- name: downloading {{ keycloak_tgz_url }}... | ||
- name: Downloading {{ keycloak_tgz_url }}... | ||
become: true | ||
become_user: root | ||
get_url: | ||
ansible.builtin.get_url: | ||
url: '{{ keycloak_tgz_url }}' | ||
dest: '{{ keycloak_tmp_tgz }}' | ||
checksum: '{{ keycloak_checksum }}' | ||
mode: 0644 | ||
- name: unarchiving {{ keycloak_tmp_tgz }} | ||
mode: '644' | ||
- name: Unarchiving {{ keycloak_tmp_tgz }} | ||
become: true | ||
become_user: root | ||
unarchive: | ||
ansible.builtin.unarchive: | ||
remote_src: true | ||
src: '{{ keycloak_tmp_tgz }}' | ||
dest: '{{ keycloak_parent_install_dir }}' | ||
creates: '{{ keycloak_install_dir }}' | ||
always: | ||
- name: rm {{ keycloak_tmp_tgz }} | ||
- name: Rm {{ keycloak_tmp_tgz }} | ||
become: true | ||
become_user: root | ||
file: | ||
ansible.builtin.file: | ||
path: '{{ keycloak_tmp_tgz }}' | ||
state: absent | ||
|
||
- name: linking {{ keycloak_link_dir }} to {{ keycloak_install_dir }} | ||
- name: Linking {{ keycloak_link_dir }} to {{ keycloak_install_dir }} | ||
become: true | ||
become_user: root | ||
file: | ||
ansible.builtin.file: | ||
src: '{{ keycloak_install_dir }}' | ||
dest: '{{ keycloak_link_dir }}' | ||
state: link | ||
|
||
- name: adding keycloak to the default bash login shell's path | ||
- name: Adding keycloak to the default bash login shell's path | ||
become: true | ||
become_user: root | ||
with_items: | ||
- f: keycloak.sh | ||
d: /etc/profile.d | ||
template: | ||
ansible.builtin.template: | ||
src: '{{ item.f }}.j2' | ||
dest: '{{ item.d }}/{{ item.f }}' | ||
mode: '{{ item.m|default("0644") }}' | ||
mode: '{{ item.m | default("644") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
--- | ||
- hosts: all | ||
- name: Testing andrewrothstein.keycloak | ||
hosts: all | ||
roles: | ||
- role: '{{playbook_dir}}' | ||
- role: '{{ playbook_dir }}' | ||
tasks: | ||
- name: Executing 'kc.sh --version' | ||
ansible.builtin.command: sh -lc 'kc.sh --version' | ||
changed_when: false | ||
register: keycloak_test_output | ||
- name: Output of 'kc.sh --version' | ||
ansible.builtin.debug: | ||
msg: '{{ keycloak_test_output.stdout }}' |