diff options
author | Egor Tensin <egor@tensin.name> | 2025-09-09 11:12:22 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-09-09 11:12:26 +0200 |
commit | f7178aedfd35c95c43c6a811775cb51e40ffd925 (patch) | |
tree | 01b2244c232afd3be8f74f6835bad11029317045 /src/roles/common/handlers | |
parent | README: update (diff) | |
download | maintenance-f7178aedfd35c95c43c6a811775cb51e40ffd925.tar.gz maintenance-f7178aedfd35c95c43c6a811775cb51e40ffd925.zip |
repurpose the repo
It's no longer a stupid, archived Ansible project; I'm gonna use it to
run GitHub Actions to do maintenance on my stuff.
Diffstat (limited to 'src/roles/common/handlers')
-rw-r--r-- | src/roles/common/handlers/main.yml | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/roles/common/handlers/main.yml b/src/roles/common/handlers/main.yml deleted file mode 100644 index 4942957..0000000 --- a/src/roles/common/handlers/main.yml +++ /dev/null @@ -1,24 +0,0 @@ -- name: Reboot - ansible.builtin.reboot: - args: - # On my trusty old Raspberry Pi 1 Model B+, /proc/sys/kernel/random/boot_id - # can sometimes stay the same between reboots. Apparently, not enough - # entropy or something. - boot_time_command: uptime -s - # Another option is `who -s`. This option requires Ansible 2.10 or later. - - # 5 minutes is plenty. - reboot_timeout: 300 - # Don't reboot yourself accidentally: - when: 'ansible_env["SSH_CLIENT"].split()[0] not in ansible_all_ipv4_addresses' - become: true - listen: reboot - -- name: Wait for connectivity - # One of the nodes is the VPN server connecting all the other nodes, wait - # until all of them are back up: - ansible.builtin.wait_for_connection: - args: - # 5 minutes is plenty. - timeout: 300 - listen: reboot |