From bec51b33e2326681f2e165fb2c0fb2cbb2b3b6e1 Mon Sep 17 00:00:00 2001 From: Stuart MacKay Date: Tue, 30 Jun 2020 16:41:01 +0100 Subject: [PATCH] Renamed the template for nginx config. Renamed the file used as a template for the nginx configuration for the site from youtubeadl.j2 to nginx_config.js. Why? The name follows the convention for other config related templates, e.g. supervisor_config.j2 It is one less thing to change when adapting the playbook to run with another project. --- roles/nginx/tasks/main.yml | 2 +- roles/nginx/templates/{youtubeadl.j2 => nginx_config.j2} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename roles/nginx/templates/{youtubeadl.j2 => nginx_config.j2} (100%) diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index c4702def..e77ce564 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -19,7 +19,7 @@ when: nginx_strong_dh_group is defined and nginx_strong_dh_group - name: Create the Nginx configuration file - template: src={{ application_name }}.j2 + template: src=nginx_config.j2 dest=/etc/nginx/sites-available/{{ application_name }} backup=yes notify: reload nginx diff --git a/roles/nginx/templates/youtubeadl.j2 b/roles/nginx/templates/nginx_config.j2 similarity index 100% rename from roles/nginx/templates/youtubeadl.j2 rename to roles/nginx/templates/nginx_config.j2