Replace edge proxy with nginx

The config makes more sense, and it has more of the features I need, which will come later.
This commit is contained in:
Jake Howard
2021-08-22 22:34:27 +01:00
parent 23fc7bbb12
commit a54d373526
10 changed files with 96 additions and 98 deletions

View File

@ -0,0 +1,26 @@
- name: Install nginx
package:
name: nginx
become: true
- name: Nginx config
template:
src: files/nginx.conf
dest: /etc/nginx/nginx.conf
validate: nginx -t -c %s
mode: "0644"
become: true
register: nginx_config
- name: Enable Nginx
service:
name: nginx
enabled: true
become: true
- name: Restart Nginx
service:
name: nginx
state: restarted
become: true
when: nginx_config.changed