Include role vars for cleaner tests

This commit is contained in:
David Stephens 2022-09-11 17:07:18 +01:00
parent 8120c719a9
commit 268bfb0d3d
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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