mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented telegram notifications
This commit is contained in:
21
roles/systemd_notifier_telegram/tasks/main.yml
Normal file
21
roles/systemd_notifier_telegram/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: install curl
|
||||
pacman:
|
||||
name: curl
|
||||
state: present
|
||||
|
||||
- name: Create a directory with a subdirectory
|
||||
ansible.builtin.file:
|
||||
path: "{{systemd_telegram_folder}}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: configure systemd_notifier_telegram.sh
|
||||
template:
|
||||
src: systemd_notifier_telegram.sh.j2
|
||||
dest: "{{ systemd_telegram_script }}"
|
||||
|
||||
- name: configure systemd_notifier_telegram.service
|
||||
template:
|
||||
src: systemd_notifier_telegram@.service.j2
|
||||
dest: "/etc/systemd/system/systemd_notifier_telegram@.service"
|
||||
notify: "restart systemd_notifier_telegram service"
|
Reference in New Issue
Block a user