From 86600837e3a99c6082e8e679916483d75eacba2b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 9 Dec 2018 22:29:26 +0100 Subject: [PATCH] deploy missing tls conf --- tasks/tls.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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