mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
The Ansible output is too noisy with all the skipped tasks; avoid this by moving host-speicific tasks into their own files that get included.
18 lines
379 B
YAML
18 lines
379 B
YAML
- name: List logged on users
|
|
command: who
|
|
register: who
|
|
|
|
- name: Abort reboot with logged on users
|
|
meta: end_host
|
|
when:
|
|
- who is changed
|
|
- who.stdout_lines|length > 1
|
|
|
|
- name: Stop arch-svntogit.timer
|
|
service: name=arch-svntogit.timer state=stopped
|
|
|
|
- name: Wait for svntogit to finish
|
|
wait_for:
|
|
path: /srv/svntogit/update-repos.sh.lock
|
|
state: absent
|