Use template instead of copy in roles/mastodon-nginx/tasks/main.yml

This commit is contained in:
staticsafe 2017-11-26 18:11:14 -05:00
parent 84fd8d2662
commit baf17287a7
1 changed files with 1 additions and 2 deletions

View File

@ -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