rebuild.yml: add playbook to rebuild all nodes

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-10-26 13:08:48 +02:00
parent 9887cdbfc9
commit db178fc217
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 26 additions and 0 deletions

26
ansible/rebuild.yml Normal file
View File

@ -0,0 +1,26 @@
---
- name: Start rebuilds of all nodes
hosts:
- nimbus.mainnet
- nimbus.pyrmont
- nimbus.prater
become: false
tasks:
- name: Start node rebuilds on Linux
when: ansible_system == "Linux"
command: |
sudo systemctl --no-block restart 'build-beacon-node-*'
- name: Start node rebuilds on MacOS
when: ansible_system == "Darwin"
shell: |
sudo launchctl list | \
awk '/status.build-beacon-node/{print $3}' | \
xargs -n1 sudo launchctl start
- name: Start node rebuilds on Windows
when: ansible_system == "Win32NT"
win_shell: |
Get-ScheduledTask | \
where TaskName -Match '^build-beacon-node' | \
Start-ScheduledTask