role mastodon added
This commit is contained in:
18
roles/mastodon/tasks/system_setup/nginx.yml
Normal file
18
roles/mastodon/tasks/system_setup/nginx.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
|
||||
- name: mastodon | Copy nginx config
|
||||
template:
|
||||
src: ../files/nginx/mastodon.conf.j2
|
||||
dest: /etc/nginx/sites-available/mastodon.conf
|
||||
when:
|
||||
- mastodon_host is defined
|
||||
notify: restart_nginx
|
||||
|
||||
- name: mastodon | Symlink enabled site
|
||||
file:
|
||||
src: "/etc/nginx/sites-available/mastodon.conf"
|
||||
dest: "/etc/nginx/sites-enabled/mastodon.conf"
|
||||
state: link
|
||||
when:
|
||||
- mastodon_host is defined
|
||||
notify: restart_nginx
|
||||
Reference in New Issue
Block a user