mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
22 lines
596 B
YAML
22 lines
596 B
YAML
- 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"
|