From baf17287a72037f1d6c9281523571e4a425e8808 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 26 Nov 2017 18:11:14 -0500 Subject: [PATCH] Use template instead of copy in roles/mastodon-nginx/tasks/main.yml --- roles/mastodon-nginx/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/mastodon-nginx/tasks/main.yml b/roles/mastodon-nginx/tasks/main.yml index 4ad75eb..23cbcef 100644 --- a/roles/mastodon-nginx/tasks/main.yml +++ b/roles/mastodon-nginx/tasks/main.yml @@ -16,10 +16,9 @@ path: /etc/nginx/sites-enabled/default state: absent - name: Copy Mastodon nginx vhost template to sites-available - copy: + template: src: mastodon-nginx.conf dest: /etc/nginx/sites-available/{{ mastodon_hostname }}.conf - backup: yes - name: Enable Mastodon nginx vhost template file: src: /etc/nginx/sites-available/{{ mastodon_hostname }}.conf