mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
23 lines
502 B
YAML
23 lines
502 B
YAML
---
|
|
- name: install nginx
|
|
pacman: name=nginx state=present
|
|
notify: restart nginx
|
|
|
|
- name: set /etc/nginx/conf.d
|
|
file:
|
|
path: /etc/nginx/conf.d
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Activate NGINX matomo tracking
|
|
include_role:
|
|
name: nginx-matomo-tracking
|
|
when: nginx_matomo_tracking_active and domain is defined
|
|
|
|
- name: create nginx config file
|
|
template: src=nginx.conf.j2 dest=/etc/nginx/nginx.conf
|
|
notify: restart nginx
|
|
|
|
- name: flush nginx service
|
|
meta: flush_handlers
|