summaryrefslogtreecommitdiff
path: root/roles/ick-notifier/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ick-notifier/tasks/main.yml')
-rw-r--r--roles/ick-notifier/tasks/main.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/roles/ick-notifier/tasks/main.yml b/roles/ick-notifier/tasks/main.yml
new file mode 100644
index 0000000..c0479b8
--- /dev/null
+++ b/roles/ick-notifier/tasks/main.yml
@@ -0,0 +1,32 @@
+- name: install notification packages
+ apt:
+ name: "{{ item }}"
+ with_items:
+ - "{{ ick_prefix }}ick2"
+
+- name: create config dirs
+ file:
+ state: directory
+ path: "{{ item }}"
+ owner: root
+ group: root
+ mode: 0755
+ with_items:
+ - /etc/ick
+
+- name: install notification config
+ template:
+ src: notifications.yaml.j2
+ dest: /etc/ick/notifications.yaml
+ owner: root
+ group: root
+ mode: 0644
+
+- name: enable and start units
+ systemd:
+ daemon_reload: yes
+ name: "{{ item }}"
+ state: restarted
+ enabled: yes
+ with_items:
+ - notification_service