homelab/roles/bitwarden/handlers/main.yml

17 lines
430 B
YAML
Raw Permalink Normal View History

2022-05-27 04:03:49 +00:00
- name: Stop Bitwarden for rebuild
2023-05-04 03:42:55 +00:00
ansible.builtin.service:
2022-05-27 04:03:49 +00:00
name: "{{ bitwarden_name }}"
state: stopped
listen: rebuild_bitwarden
2021-02-27 05:00:52 +00:00
- name: Rebuild Bitwarden
2023-05-04 03:42:55 +00:00
ansible.builtin.shell: "{{ bitwarden_root }}/bitwarden.sh rebuild"
2021-02-27 05:00:52 +00:00
listen: rebuild_bitwarden
2022-05-27 04:03:49 +00:00
- name: Start Bitwarden after rebuild
2023-05-04 03:42:55 +00:00
ansible.builtin.service:
2022-05-27 04:03:49 +00:00
name: "{{ bitwarden_name }}"
state: started
enabled: true
listen: rebuild_bitwarden