role mastodon added

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

No files matched your search

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