computer-playbook/roles/native-nginx/tasks/main.yml

18 lines
355 B
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
---
- 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: create nginx config file
template: src=nginx.conf.j2 dest=/etc/nginx/nginx.conf
2020-12-24 14:27:31 +01:00
notify: restart nginx
- name: flush nginx service
meta: flush_handlers