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
|
path: /etc/nginx/sites-enabled/default
|
||||||
state: absent
|
state: absent
|
||||||
- name: Copy Mastodon nginx vhost template to sites-available
|
- name: Copy Mastodon nginx vhost template to sites-available
|
||||||
copy:
|
template:
|
||||||
src: mastodon-nginx.conf
|
src: mastodon-nginx.conf
|
||||||
dest: /etc/nginx/sites-available/{{ mastodon_hostname }}.conf
|
dest: /etc/nginx/sites-available/{{ mastodon_hostname }}.conf
|
||||||
backup: yes
|
|
||||||
- name: Enable Mastodon nginx vhost template
|
- name: Enable Mastodon nginx vhost template
|
||||||
file:
|
file:
|
||||||
src: /etc/nginx/sites-available/{{ mastodon_hostname }}.conf
|
src: /etc/nginx/sites-available/{{ mastodon_hostname }}.conf
|
||||||
|
|
Loading…
Reference in New Issue