diff --git a/roles/hello_world/molecule/default/verify.yml b/roles/hello_world/molecule/default/verify.yml index 7ce894dc..1cf221a3 100644 --- a/roles/hello_world/molecule/default/verify.yml +++ b/roles/hello_world/molecule/default/verify.yml @@ -5,9 +5,12 @@ hosts: all gather_facts: false tasks: + - include_vars: + file: ../../defaults/main.yml + - name: Get container state docker_container_info: - name: hello_world + name: "{{ hello_world_container_name }}" register: result - name: Check Hello World is running diff --git a/roles/hello_world/molecule/default/verify_stopped.yml b/roles/hello_world/molecule/default/verify_stopped.yml index 239f6607..4f4cc4dd 100644 --- a/roles/hello_world/molecule/default/verify_stopped.yml +++ b/roles/hello_world/molecule/default/verify_stopped.yml @@ -5,9 +5,12 @@ hosts: all gather_facts: false tasks: + - include_vars: + file: ../../defaults/main.yml + - name: Try and stop and remove Hello World docker_container: - name: hello_world + name: "{{ hello_world_container_name }}" state: absent register: result