Use simpler file structure
This commit is contained in:
parent
8ea9414418
commit
e8cb486c8f
96 changed files with 1001 additions and 436 deletions
18
roles/common/tasks/nginx.yml
Normal file
18
roles/common/tasks/nginx.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
- name: install nginx
|
||||
apt:
|
||||
name: nginx
|
||||
state: present
|
||||
|
||||
- name: copy nginx config
|
||||
template:
|
||||
src: "nginx.conf.j2"
|
||||
dest: "/etc/nginx/nginx.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: remove default site
|
||||
file:
|
||||
path: "/etc/nginx/sites-enabled/default"
|
||||
state: absent
|
||||
notify: restart nginx
|
||||
Loading…
Add table
Add a link
Reference in a new issue