19 lines
455 B
YAML
19 lines
455 B
YAML
---
|
|
- name: Create Nginx server configuration
|
|
template:
|
|
src: '../templates/nginx/matrix.conf'
|
|
dest: '/etc/nginx/sites-available/matrix.conf'
|
|
mode: 'u=rw,g=rw,o=r'
|
|
owner: root
|
|
group: root
|
|
notify: Restart Nginx
|
|
|
|
- name: Enable Nginx server configuration
|
|
file:
|
|
state: link
|
|
src: '/etc/nginx/sites-available/matrix.conf'
|
|
dest: '/etc/nginx/sites-enabled/matrix.conf'
|
|
owner: root
|
|
group: root
|
|
notify: Restart Nginx
|