Files
ansible-pull/roles/mastodon/tasks/system_setup/nginx.yml
2022-03-15 14:23:01 +01:00

18 lines
442 B
YAML

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