Files
ansible-collection/roles/ntfy/tasks/main.yml
T

25 lines
519 B
YAML
Raw Normal View History

2026-10-02 21:34:01 +04:00
---
- name: install ntfy
ansible.builtin.apt:
name: ntfy
state: latest
update_cache: true
notify: restart ntfy
- name: set ntfy data directory ownership
ansible.builtin.file:
path: /var/lib/ntfy
state: directory
owner: _ntfy
group: _ntfy
mode: '0750'
recurse: true
- name: deploy ntfy config
ansible.builtin.template:
src: "{{ inventory_hostname }}/server.yml.j2"
dest: "/etc/ntfy/server.yml"
owner: root
group: root
mode: '0644'
notify: restart ntfy