mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
18 lines
352 B
YAML
18 lines
352 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: create nginx config file
|
||
|
template: src=nginx.conf dest=/etc/nginx/nginx.conf
|
||
|
notify: restart nginx
|
||
|
|
||
|
- name: flush nginx service
|
||
|
meta: flush_handlers
|