From 83b34879eef7b5c12ecc52732cc5eb26ba063c81 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 24 Nov 2022 15:11:31 +0100 Subject: nginx_reverse_proxy --- roles/nginx_reverse_proxy/tasks/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 roles/nginx_reverse_proxy/tasks/main.yml (limited to 'roles/nginx_reverse_proxy/tasks/main.yml') diff --git a/roles/nginx_reverse_proxy/tasks/main.yml b/roles/nginx_reverse_proxy/tasks/main.yml new file mode 100644 index 0000000..975bf71 --- /dev/null +++ b/roles/nginx_reverse_proxy/tasks/main.yml @@ -0,0 +1,21 @@ +--- +- name: Install packages + apt: + name: + - nginx + become: yes + +- name: Check for changed cert + command: /bin/true + when: + - '{{ cert_changed | default(False) }}' + notify: + - Restart nginx + +- name: Install nginx config + template: + src: nginx.conf.j2 + dest: /etc/nginx/sites-available/default + become: yes + notify: + - restart nginx -- cgit v1.2.3