---

- name: Deploy configuration
  template: src=vaultwarden.conf.j2 dest={{ vaultwarden_root_dir }}/etc/vaultwarden.conf group={{ vaultwarden_user }} mode=640
  notify: restart vaultwarden
  tags: vaultwarden

- name: Deploy nginx configuration
  template: src=nginx.conf.j2 dest=/etc/nginx/ansible_conf.d/31-vaultwarden.conf
  notify: reload nginx
  tags: vaultwarden
