keycloak-scim/.github/scripts/ansible/roles/keycloak_ec2_installer/tasks/install.yml

30 lines
704 B
YAML
Raw Normal View History

- name: Update system packages on the remote hosts
when: update_system_packages
package:
name: "*"
state: latest
- name: Install Java {{ java_version }} packages on the remote hosts
when: install_java
package:
name:
- "java-{{ java_version }}-openjdk"
- "java-{{ java_version }}-openjdk-devel"
state: present
- name: Install dependencies on the remote hosts
package: name={{item}} state=present
with_items:
- unzip
- name: Create Keycloak src dir
file:
path: "{{ kc_home }}"
state: directory
- name: Install Keycloak src on the remote hosts
unarchive:
src: "{{ keycloak_src }}"
dest: "{{ kc_home }}"
owner: "{{ ansible_ssh_user }}"