2022-05-31 04:36:55 +00:00
|
|
|
---
|
|
|
|
- name: Create deadman directory
|
|
|
|
file:
|
|
|
|
name: /root/deadman
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Install deadswitch script
|
|
|
|
copy:
|
2022-08-02 18:38:55 +00:00
|
|
|
src: static/blog/deadswitch
|
2022-05-31 04:36:55 +00:00
|
|
|
dest: /usr/local/bin/deadswitch
|
|
|
|
mode: u+rwx
|
|
|
|
|
|
|
|
- name: Install imdead.sh
|
|
|
|
copy:
|
2022-08-02 18:38:55 +00:00
|
|
|
src: static/blog/imdead.sh
|
2022-05-31 04:36:55 +00:00
|
|
|
dest: /root/deadman/imdead.sh
|
|
|
|
mode: u+rwx
|
|
|
|
|
2022-08-02 04:57:43 +00:00
|
|
|
- name: Copy dead patch
|
2022-08-02 18:38:55 +00:00
|
|
|
copy:
|
2022-08-02 04:57:43 +00:00
|
|
|
src: secrets/dead.patch
|
|
|
|
dest: /root/deadman/dead.patch
|
2022-08-02 18:38:55 +00:00
|
|
|
mode: u+rwx
|
2022-05-31 04:36:55 +00:00
|
|
|
|
2022-05-31 18:48:01 +00:00
|
|
|
- name: Install deadtrigger
|
2022-05-31 04:36:55 +00:00
|
|
|
file:
|
2022-05-31 18:48:01 +00:00
|
|
|
name: /root/.deadtrigger
|
2022-05-31 04:36:55 +00:00
|
|
|
state: touch
|
|
|
|
|
2022-08-02 18:32:19 +00:00
|
|
|
# Run deadswitch daily at 1am
|
2022-05-31 04:36:55 +00:00
|
|
|
- name: Install deadlock cronjob
|
|
|
|
cron:
|
|
|
|
name: Run deadswitch
|
|
|
|
minute: 0
|
|
|
|
hour: 1
|
|
|
|
job: /usr/local/bin/deadswitch
|