29 lines
766 B
YAML
Raw Normal View History

2022-05-27 00:03:49 -04:00
- name: Stop Bitwarden for rebuild
2023-05-03 23:42:55 -04:00
ansible.builtin.service:
2022-05-27 00:03:49 -04:00
name: "{{ bitwarden_name }}"
state: stopped
listen: rebuild_bitwarden
2021-02-27 00:00:52 -05:00
- name: Rebuild Bitwarden
2023-11-05 21:34:19 -05:00
ansible.builtin.command: "{{ bitwarden_root }}/bitwarden.sh rebuild"
listen: rebuild_bitwarden
- name: Reload systemd manager configuration
ansible.builtin.systemd:
daemon_reload: true
2021-02-27 00:00:52 -05:00
listen: rebuild_bitwarden
2022-05-27 00:03:49 -04:00
- name: Start Bitwarden after rebuild
2023-05-03 23:42:55 -04:00
ansible.builtin.service:
2022-05-27 00:03:49 -04:00
name: "{{ bitwarden_name }}"
state: started
enabled: true
listen: rebuild_bitwarden
2023-11-05 21:34:19 -05:00
- name: Create Bitwarden's initial log file
ansible.builtin.file:
path: "{{ bitwarden_logs_identity }}/{{ bitwarden_logs_identity_date }}.txt"
state: touch
mode: "644"
listen: touch_bitwarden