ansible-config/roles/nginx/tasks/main.yml
Alexander Dietrich eed7317b0c Update nginx role
- Switch "worker_processes" to "auto"
- Disable "server_tokens" globally
- Change formatting for readability
2017-02-05 16:12:39 +01:00

35 lines
568 B
YAML

---
- name: install nginx
apt:
name: nginx
state: present
tags: nginx
- name: disable default site
file:
path: /etc/nginx/sites-enabled/default
state: absent
notify: restart nginx
tags: nginx
- name: copy includes
copy:
src: etc/nginx/include
dest: /etc/nginx
mode: 0644
owner: root
group: root
notify: restart nginx
tags: nginx
- name: copy nginx.conf
copy:
src: etc/nginx/nginx.conf
dest: /etc/nginx
mode: 0644
owner: root
group: root
backup: yes
notify: restart nginx
tags: nginx