mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-14 03:40:05 +00:00
35 lines
646 B
YAML
35 lines
646 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 message
|
|
template:
|
|
src: secrets/dead.md
|
|
dest: /root/deadman/dead.md
|
|
|
|
- name: Install deadtrigger
|
|
file:
|
|
name: /root/.deadtrigger
|
|
state: touch
|
|
|
|
- name: Install deadlock cronjob
|
|
cron:
|
|
name: Run deadswitch
|
|
minute: 0
|
|
hour: 1
|
|
job: /usr/local/bin/deadswitch
|