Initial commit
This commit is contained in:
commit
7e029a0d33
22 changed files with 598 additions and 0 deletions
18
tasks/nginx.yml
Normal file
18
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
|
||||
Reference in a new issue