role mastodon added

This commit is contained in:
rene
2022-03-15 14:23:01 +01:00
parent ba812a9cdc
commit 8b4579bb90
21 changed files with 584 additions and 2 deletions

View 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