xoxys.vaultwarden_docker/tasks/setup.yml

21 lines
638 B
YAML
Raw Normal View History

2020-01-17 21:00:14 +00:00
---
- 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