openpunk-ansible/tasks/deadswitch.yml

35 lines
650 B
YAML
Raw Normal View History

2022-05-31 04:36:55 +00:00
---
- name: Create deadman directory
file:
name: /root/deadman
state: directory
- name: Install deadswitch script
copy:
src: templates/blog/deadswitch
dest: /usr/local/bin/deadswitch
mode: u+rwx
- name: Install imdead.sh
copy:
src: templates/blog/imdead.sh
dest: /root/deadman/imdead.sh
mode: u+rwx
- name: Copy dead patch
2022-05-31 04:36:55 +00:00
template:
src: secrets/dead.patch
dest: /root/deadman/dead.patch
2022-05-31 04:36:55 +00:00
- name: Install deadtrigger
2022-05-31 04:36:55 +00:00
file:
name: /root/.deadtrigger
2022-05-31 04:36:55 +00:00
state: touch
- name: Install deadlock cronjob
cron:
name: Run deadswitch
minute: 0
hour: 1
job: /usr/local/bin/deadswitch