Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
piops-roles
sso-lqdn
Commits
925e3bfb
Commit
925e3bfb
authored
Sep 09, 2021
by
nono
💻
Browse files
Nearly done: update tasks
parent
95bb6690
Changes
3
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
925e3bfb
...
...
@@ -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
...
...
tasks/update-service.yml
View file @
925e3bfb
...
...
@@ -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
vars/main.yml
View file @
925e3bfb
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment