xoxys.vaultwarden_ldap_docker/tasks/setup.yml
Robert Kaussow 4fb938c103
Some checks failed
continuous-integration/drone/push Build is failing
chore: upstream project was renamed to vaultwarden (#1)
Co-authored-by: Robert Kaussow <mail@geeklabor.de>
Reviewed-on: #1
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2021-05-15 22:09:29 +02:00

27 lines
801 B
YAML

---
- block:
- name: Ensure service directory exists
file:
path: "{{ vaultwarden_ldap_service_directory }}"
state: directory
mode: 0755
- name: Deploy compose file to '{{ vaultwarden_ldap_service_directory }}'
template:
src: "services/vaultwarden_ldap_compose.yml.j2"
dest: "{{ vaultwarden_ldap_service_directory }}/docker-compose.yml"
owner: root
group: root
mode: 0640
validate: "docker-compose -f %s config -q"
- name: Ensure service is up and running
docker_compose:
project_src: "{{ vaultwarden_ldap_service_directory }}"
pull: yes
remove_orphans: yes
stopped: "{{ vaultwarden_ldap_service_stopped }}"
state: present
become: True
become_user: root