aboutsummaryrefslogtreecommitdiff
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml11
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