mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 03:58:47 +00:00
20 lines
481 B
YAML
20 lines
481 B
YAML
---
|
|
# This is a Hello World playbook to execute Ansible tests.
|
|
|
|
- name: Verify
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- ansible.builtin.include_vars:
|
|
file: ../../defaults/main.yml
|
|
|
|
- name: Try and stop and remove Hello World
|
|
docker_container:
|
|
name: "{{ hello_world_container_name }}"
|
|
state: absent
|
|
register: result
|
|
|
|
- name: Check Hello World is stopped
|
|
ansible.builtin.assert:
|
|
that:
|
|
- not result.changed
|