diff options
Diffstat (limited to 'roles/nginx_reverse_proxy/tasks/main.yml')
-rw-r--r-- | roles/nginx_reverse_proxy/tasks/main.yml | 21 |
1 files changed, 21 insertions, 0 deletions
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 |