This commit is contained in:
2021-05-12 17:22:08 -04:00
parent 299b4d123c
commit 061cb5fc29
4 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
- name: Install nginx
apt:
name: nginx
state: present
- name: Install nginx configuration
template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
mode: '0644'
register: nginx_conf
- name: Reload nginx
service:
name: nginx
state: reloaded
enabled: true