mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
Include role vars for cleaner tests
This commit is contained in:
parent
8120c719a9
commit
268bfb0d3d
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue