homelab/roles/nginx/tasks/proxy.yml

18 lines
295 B
YAML
Raw Normal View History

2022-05-17 03:11:16 +00:00
- 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