2015-08-29 23:44:14 +02:00
|
|
|
---
|
2017-02-05 16:12:39 +01:00
|
|
|
- name: install nginx
|
|
|
|
apt:
|
|
|
|
name: nginx
|
|
|
|
state: present
|
2015-08-29 23:44:14 +02:00
|
|
|
tags: nginx
|
|
|
|
|
2017-02-05 16:12:39 +01:00
|
|
|
- name: disable default site
|
|
|
|
file:
|
|
|
|
path: /etc/nginx/sites-enabled/default
|
|
|
|
state: absent
|
|
|
|
notify: restart nginx
|
2015-08-29 23:44:14 +02:00
|
|
|
tags: nginx
|
|
|
|
|
2017-02-05 16:12:39 +01:00
|
|
|
- name: copy includes
|
|
|
|
copy:
|
|
|
|
src: etc/nginx/include
|
|
|
|
dest: /etc/nginx
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify: restart nginx
|
2015-08-29 23:44:14 +02:00
|
|
|
tags: nginx
|
|
|
|
|
2017-02-10 20:38:12 +01:00
|
|
|
- name: template nginx.conf
|
|
|
|
template:
|
|
|
|
src: templates/nginx.conf.j2
|
|
|
|
dest: /etc/nginx/nginx.conf
|
2017-02-05 16:12:39 +01:00
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
backup: yes
|
|
|
|
notify: restart nginx
|
2015-08-29 23:44:14 +02:00
|
|
|
tags: nginx
|