notification/tasks/debian_units.yml
2023-02-18 09:22:41 +03:00

20 lines
528 B
YAML

---
- name: create E-Mail reboot script
template:
src: templates/sendmail-reboot.sh
dest: /etc/init.d/sendmail-reboot.sh
mode: u=rwx,g=rx,o=rx
- name: install E-Mail init script link
shell:
cmd: "update-rc.d sendmail-reboot.sh defaults"
- name: create Telegram reboot script
template:
src: templates/sendtelegram-reboot.sh
dest: /etc/init.d/sendtelegram-reboot.sh
mode: u=rwx,g=rx,o=rx
- name: install Telegram init script link
shell:
cmd: "update-rc.d sendtelegram-reboot.sh defaults"