1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-11-10 02:01:41 +01:00
infrastructure/playbooks/tasks/upgrade-servers.yml
2024-02-10 17:07:38 +01:00

37 lines
1006 B
YAML

- 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,!accounts.archlinux.org,!kape_servers,!equinix_metal
max_fail_percentage: 0
serial: 20%
gather_facts: false
tasks:
- name: Upgrade each host in this batch
include_tasks: include/upgrade-server.yml
- name: Upgrade and reboot all Kape and Equinix Metal servers
hosts: kape_servers,equinix_metal
max_fail_percentage: 0
serial: 1
gather_facts: false
tasks:
- name: Upgrade each host in this batch
include_tasks: include/upgrade-server.yml