mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 03:58:47 +00:00
17 lines
441 B
YAML
17 lines
441 B
YAML
---
|
|
- name: Verify
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- ansible.builtin.include_vars:
|
|
file: ../../defaults/main.yml
|
|
|
|
- name: Nomad - retrieve information
|
|
ansible.builtin.stat:
|
|
path: /usr/bin/nomad
|
|
register: nomad_file
|
|
|
|
- name: Nomad - assert that file is removed
|
|
ansible.builtin.assert:
|
|
that: not nomad_file.stat.exists
|
|
fail_msg: "The file /usr/bin/nomad still exists!"
|