Initial commit

This commit is contained in:
Sonny Bakker 2020-11-07 14:42:58 +01:00
commit 7e029a0d33
22 changed files with 598 additions and 0 deletions

18
tasks/nginx.yml Normal file
View 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