Commit 925e3bfb authored by nono's avatar nono 💻
Browse files

Nearly done: update tasks

parent 95bb6690
......@@ -17,7 +17,7 @@
- include: install-configuration.yml
# Update the service
# - include: update-service.yml
- include: update-service.yml
# Launch the service
- include: install-run-service.yml
......
......@@ -10,21 +10,34 @@
# Delete the data/tx-object-store/ transaction directory
- name: Deleting the data/tx-object-store/ transaction directory
file:
path: "{{ keycloak_jboss_home }}/standalone/data/tx-object-store"
path: "{{ keycloak_base_path }}/keycloak-{{ keycloak_previous_version }}/standalone/data/tx-object-store/"
state: absent
# Backup the old installation
- name: Making a copy of the current installation
#- name: Making a copy of the current installation
# NB: Not needed as we are installing to a new directory anyways. We don't touch
# the old directory.
# Backup the database
- name: Backing up the of database
shell: mysqldump keycloak > /root/keycloak-backup-$(date --iso).sql
# Upgrade the server
- name: Upgrading the server with the new files
# This is actually reinstalling the files.
#- name: Upgrading the server with the new files
# This is actually reinstalling the files.
# copy the KEYCLOAK_HOME/standalone/ directory from the previous installation over the directory in the new installation.
- name: Copying the standalon directory from the previous installation
- name: Copying the standalone directory from the previous installation
copy:
src: "{{ keycloak_base_path }}/keycloak-{{ keycloak_previous_version }}/standalone"
dest: "{{ keycloak_base_path }}/keycloak-{{ keycloak_version }}/standalone"
remote_src: yes
# Run the upgrade script
# bin/jboss-cli.sh --file=bin/migrate-standalone-ha.cli
- name: Running the upgrade script
shell: "{{ keycloak_jboss_home}}/bin/jboss-cli.sh --file=bin/migrate-standalone-ha.cli"
- name: Force systemd to reread configs
ansible.builtin.systemd:
daemon_reload: yes
......@@ -11,6 +11,7 @@ keycloak_dest: "{{ keycloak_base_path }}"
## General settings
keycloak_version: "15.0.2"
keycloak_previous_version: "13.0.0"
keycloak_url: "https://github.com/keycloak/keycloak/releases/download/{{ keycloak_version }}/keycloak-{{ keycloak_version }}.zip"
keycloak_archive: "keycloak-{{ keycloak_version }}.zip"
keycloak_archive_on_target: True # To download the archive directly to the server
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment