diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-01-09 22:02:58 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-01-09 22:02:58 +0100 |
commit | d45e17a0b72c6cc160444d0a666cc95b803b6ffc (patch) | |
tree | 510484aacec7c8d801ab62f31967c540f97fc148 /roles/nginx_reverse_proxy/tasks | |
parent | c89645dd6db1b0bdb03e740310062244d2767e11 (diff) | |
parent | 83b34879eef7b5c12ecc52732cc5eb26ba063c81 (diff) | |
download | ansible_collection-d45e17a0b72c6cc160444d0a666cc95b803b6ffc.tar.gz |
Merge remote-tracking branch 'lauch/dev' into dev
Diffstat (limited to 'roles/nginx_reverse_proxy/tasks')
-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 |