mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 15:48:57 +02:00
initial cleanup server-manager
This commit is contained in:
3
roles/native-nginx/handlers/main.yml
Normal file
3
roles/native-nginx/handlers/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: restart nginx
|
||||
service: name=nginx state=restarted enabled=yes
|
17
roles/native-nginx/tasks/main.yml
Normal file
17
roles/native-nginx/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- 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
|
21
roles/native-nginx/templates/nginx.conf
Normal file
21
roles/native-nginx/templates/nginx.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
worker_processes auto;
|
||||
|
||||
events
|
||||
{
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http
|
||||
{
|
||||
include mime.types;
|
||||
default_type text/html;
|
||||
|
||||
#access_log /var/log/nginx/access.log main;
|
||||
error_log /var/log/nginx/error.log debug;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
gzip on;
|
||||
types_hash_max_size 4096;
|
||||
|
||||
include conf.d/*.conf;
|
||||
}
|
Reference in New Issue
Block a user