mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 10:15:14 +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
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
|
- include_vars:
|
||||||
|
file: ../../defaults/main.yml
|
||||||
|
|
||||||
- name: Get container state
|
- name: Get container state
|
||||||
docker_container_info:
|
docker_container_info:
|
||||||
name: hello_world
|
name: "{{ hello_world_container_name }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Check Hello World is running
|
- name: Check Hello World is running
|
||||||
|
|
|
@ -5,9 +5,12 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
|
- include_vars:
|
||||||
|
file: ../../defaults/main.yml
|
||||||
|
|
||||||
- name: Try and stop and remove Hello World
|
- name: Try and stop and remove Hello World
|
||||||
docker_container:
|
docker_container:
|
||||||
name: hello_world
|
name: "{{ hello_world_container_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue