Skip to content
Snippets Groups Projects
Verified Commit 3b9a0d41 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

tasks/upgrade-servers: upgrade Keycloak box first

matrix.archlinux.org doesn't like it when accounts.archlinux.org is
unavailable at start-up. Try to work around this by upgrading
accounts.archlinux.org first and doing a health check before proceeding
to update the rest of the servers.

Fixes: #496
parent a9b596c4
No related branches found
No related tags found
No related merge requests found
- name: Upgrade, reboot and health-check accounts.archlinux.org
hosts: accounts.archlinux.org
max_fail_percentage: 0
gather_facts: false
tasks:
- name: Upgrade and reboot
include_tasks: include/upgrade-server.yml
- name: Wait for Keycloak to become available
uri: url=https://{{ inventory_hostname }}/metrics
register: result
until: result.status == 200
# retry for 5 minutes after boot
retries: 30
delay: 10
- name: Upgrade and reboot all hetzner servers
hosts: all,!kape_servers,!equinix_metal
hosts: all,!accounts.archlinux.org,!kape_servers,!equinix_metal
max_fail_percentage: 0
serial: 20%
gather_facts: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment