21 lines
No EOL
452 B
YAML
21 lines
No EOL
452 B
YAML
---
|
|
|
|
- name: Copy nginx config
|
|
template:
|
|
src: ../files/nginx/mastodon.conf.j2
|
|
dest: /etc/nginx/sites-available/mastodon.conf
|
|
when:
|
|
- mastodon_host is defined
|
|
|
|
- name: 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
|
|
|
|
- name: Reload nginx
|
|
command: "systemctl reload nginx"
|
|
tags:
|
|
- systemd |