forked from ahembree/ansible-hms-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhms-docker.yml
34 lines (29 loc) · 902 Bytes
/
hms-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- hosts: all
become: yes
gather_facts: yes
vars:
hmsd_current_version: 1.5
hmsd_version_file: "{{ hms_docker_data_path }}/.hmsd-version"
regex: '[^A-Za-z0-9._-]'
replace: '_'
arr_apikey: '(?<=\<ApiKey\>)\w*(?=\<\/ApiKey\>)'
roles:
- galaxy-roles/geerlingguy.docker
tasks:
- name: Ensure Nvidia GPU role if enabled
ansible.builtin.import_role:
name: gpu
when: enable_nvidia_gpu is defined and enable_nvidia_gpu
- name: Ensure HMS-Docker role
ansible.builtin.import_role:
name: hmsdocker
- name: Verify all Traefik endpoints are accessible
ansible.builtin.uri:
url: http://{{ item }}.{{ hms_docker_domain }}
status_code: 200,302,401,403
validate_certs: no
loop: "{{ traefik_enabled_subdomains }}"
when:
- hmsdocker_container_enabled_traefik
- traefik_verify_endpoints | default(false)