Verified Commit 2b0ee89f authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

matrix: Use systemd handlers

parent a369b2b3
---
- name: daemon reload
command: systemctl daemon-reload
- name: restart synapse
systemd:
name: synapse
state: restarted
enabled: yes
daemon_reload: yes
- name: restart matrix-appservice-irc
systemd:
name: matrix-appservice-irc
state: restarted
enabled: yes
daemon_reload: yes
......@@ -36,6 +36,8 @@
become: yes
become_user: synapse
become_method: sudo
notify:
- restart matrix-appservice-irc
- name: install synapse
command: >
......@@ -45,6 +47,8 @@
become: yes
become_user: synapse
become_method: sudo
notify:
- restart synapse
- name: install matrix-appservice-irc
command: yarn install
......@@ -54,6 +58,8 @@
become: yes
become_user: synapse
become_method: sudo
notify:
- restart matrix-appservice-irc
- name: add synapse postgres db
postgresql_db: db=synapse
......@@ -114,13 +120,8 @@
- synapse.service
- matrix-appservice-irc.service
notify:
- daemon reload
- name: start and enable synapse
service: name={{ item }} enabled=yes state=started
with_items:
- synapse.service
- matrix-appservice-irc.service
- restart synapse
- restart matrix-appservice-irc
- name: open firewall holes
firewalld: port=8448/tcp permanent=true state=enabled immediate=yes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment