diff --git a/tasks/tls.yml b/tasks/tls.yml index e54e069..7aa4be3 100644 --- a/tasks/tls.yml +++ b/tasks/tls.yml @@ -25,5 +25,15 @@ label: "{{ item.dest }}" notify: __nginx_reload when: nginx_tls_source_use_files + + - name: Update tls.conf + template: + src: etc/nginx/conf.d/tls.conf.j2 + dest: /etc/nginx/conf.d/tls.conf + owner: root + group: root + mode: 0640 + validate: bash -c 'nginx -t -c /dev/stdin <<< "events {worker_connections 1;} http { include %s; }"' + notify: __nginx_reload become: True become_user: root