diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-11-24 15:11:31 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-11-24 15:11:31 +0100 |
commit | 83b34879eef7b5c12ecc52732cc5eb26ba063c81 (patch) | |
tree | 946497f68e205cb72d4739c445593c1c246ba680 /roles/nginx_reverse_proxy/tasks | |
parent | ce6e646a89512b051b5f85d6364498f1e736c976 (diff) | |
download | ansible_collection-83b34879eef7b5c12ecc52732cc5eb26ba063c81.tar.gz |
nginx_reverse_proxy
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 |