From d20fff93329f2bf7b4d19705c7598cedc2c924ac Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 6 Mar 2019 00:07:47 -0500 Subject: Load custom nginx templates if needed. Include acme-challenge on default vhost --- tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tasks') diff --git a/tasks/main.yml b/tasks/main.yml index ab06c87..3ee74e2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -27,6 +27,17 @@ owner: "{{nginx_conf_owner}}" group: "{{nginx_conf_group}}" mode: "{{nginx_conf_file_mode}}" + when: not nginx_custom_template + notify: + - Restart Nginx +- name: Install custom 'nginx.conf' + template: + src: "{{ansible_hostname}}/nginx/nginx.conf" + dest: "{{nginx_conf_dir}}/nginx.conf" + owner: "{{nginx_conf_owner}}" + group: "{{nginx_conf_group}}" + mode: "{{nginx_conf_file_mode}}" + when: nginx_custom_template notify: - Restart Nginx - name: Install Other Nginx templates -- cgit v1.2.3