21 lines
638 B
YAML
21 lines
638 B
YAML
|
---
|
||
|
- block:
|
||
|
- name: Deploy compose file to '{{ bitwardenrs_service_directory }}'
|
||
|
template:
|
||
|
src: "services/compose.yml.j2"
|
||
|
dest: "{{ bitwardenrs_service_directory }}/docker-compose.yml"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: 0644
|
||
|
validate: "{{ bitwardenrs_docker_compose_bin }} -f %s config -q"
|
||
|
notify: __bitwardenrs_restart
|
||
|
|
||
|
- name: Create systemd unit files
|
||
|
template:
|
||
|
src: "etc/systemd/system/bitwardenrs.service.j2"
|
||
|
dest: "/etc/systemd/system/bitwardenrs.service"
|
||
|
mode: 0644
|
||
|
notify: __bitwardenrs_restart
|
||
|
become: True
|
||
|
become_user: root
|