Use template instead of copy in roles/mastodon-nginx/tasks/main.yml
This commit is contained in:
parent
84fd8d2662
commit
baf17287a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue