Files
ansible-pull/roles/mastodon/tasks/system_setup/nginx.yml
2022-03-18 17:54:35 +01:00

16 lines
428 B
YAML

---
- debug:
msg: "Hostname: {{ mastodon_host | default('{{ ansible_fqdn }}')"
- name: mastodon | Copy nginx config
template:
src: mastodon.conf.j2
dest: /etc/nginx/sites-available/mastodon.conf
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
notify: restart_nginx