mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-22 15:30:05 +00:00
37 lines
683 B
YAML
37 lines
683 B
YAML
---
|
|
- name: Create deadman directory
|
|
file:
|
|
name: /root/deadman
|
|
state: directory
|
|
|
|
- name: Install deadswitch script
|
|
copy:
|
|
src: static/blog/deadswitch
|
|
dest: /usr/local/bin/deadswitch
|
|
mode: u+rx
|
|
|
|
- name: Install imdead.sh
|
|
copy:
|
|
src: static/blog/imdead.sh
|
|
dest: /root/deadman/imdead.sh
|
|
mode: u+rx
|
|
|
|
- name: Copy dead patch
|
|
copy:
|
|
src: secrets/dead.patch
|
|
dest: /root/deadman/dead.patch
|
|
mode: u+rw
|
|
|
|
- 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
|