openpunk-ansible/tasks/deadswitch.yml
2022-08-02 13:32:19 -05:00

36 lines
680 B
YAML

---
- 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
template:
src: secrets/dead.patch
dest: /root/deadman/dead.patch
- name: Install deadtrigger
file:
name: /root/.deadtrigger
state: touch
# Run deadswitch daily at 1am
- name: Install deadlock cronjob
cron:
name: Run deadswitch
minute: 0
hour: 1
job: /usr/local/bin/deadswitch