diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-03-06 00:07:47 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-03-06 00:07:47 -0500 |
| commit | d20fff93329f2bf7b4d19705c7598cedc2c924ac (patch) | |
| tree | 403198a6a2244d88d707b1fe1a2228ac22d33554 /tasks/main.yml | |
| parent | 7b977aed7f40ccd866a51057db2fac2ca4d3777e (diff) | |
| download | nginx-d20fff93329f2bf7b4d19705c7598cedc2c924ac.tar.gz nginx-d20fff93329f2bf7b4d19705c7598cedc2c924ac.tar.xz | |
Load custom nginx templates if needed. Include acme-challenge on default vhost
Diffstat (limited to 'tasks/main.yml')
| -rw-r--r-- | tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
