diff --git a/roles/bazarr/molecule/default/verify.yml b/roles/bazarr/molecule/default/verify.yml new file mode 100644 index 00000000..b2924408 --- /dev/null +++ b/roles/bazarr/molecule/default/verify.yml @@ -0,0 +1,18 @@ +--- +- name: Verify + hosts: all + gather_facts: false + tasks: + - include_vars: + file: ../../defaults/main.yml + + - name: Get container state + docker_container_info: + name: "{{ bazarr_container_name }}" + register: result + + - name: Check Bazarr is running + assert: + that: + - result.container['State']['Status'] == "running" + - result.container['State']['Restarting'] == false