2019-01-18 13:52:23 +00:00
|
|
|
---
|
2019-01-19 00:30:45 +00:00
|
|
|
- name: Restart service
|
2019-01-18 13:52:23 +00:00
|
|
|
systemd:
|
2019-01-19 00:30:45 +00:00
|
|
|
name: matrix
|
2019-01-18 13:52:23 +00:00
|
|
|
state: restarted
|
|
|
|
daemon_reload: yes
|
|
|
|
enabled: yes
|
2019-01-19 00:30:45 +00:00
|
|
|
listen: __matrix_restart
|
2019-01-18 13:52:23 +00:00
|
|
|
become: True
|
|
|
|
become_user: root
|
|
|
|
|
|
|
|
- name: Reload nginx
|
|
|
|
systemd:
|
|
|
|
state: reloaded
|
|
|
|
name: nginx
|
|
|
|
listen: __nginx_reload
|
2019-01-19 00:30:45 +00:00
|
|
|
delegate_to: "{{ matrix_nginx_server }}"
|
2019-01-18 13:52:23 +00:00
|
|
|
become: True
|
|
|
|
become_user: root
|