1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/playbooks/tasks/include/post-upgrade.yml
Evangelos Foutras 0f612e2f6f
tasks/upgrade-servers: avoid "meta: end_host" task
This allows for tasks/include/upgrade-server.yml to be reused elsewhere.
2023-08-20 14:34:05 +03:00

15 lines
462 B
YAML

- name: Run borg client post-upgrade tasks
include_tasks: include/post-upgrade/borg-clients.yml
when: "'borg_clients' in group_names"
- name: Check for host-specific post-upgrade tasks
local_action: stat path=include/post-upgrade/{{ inventory_hostname }}.yml
register: post_upgrade_tasks
- name: Run host-specific post-upgrade tasks
include_tasks: "{{ post_upgrade_tasks.stat.path }}"
when: post_upgrade_tasks.stat.exists
- name: Reboot
reboot: