mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 03:58:47 +00:00
21 lines
582 B
YAML
21 lines
582 B
YAML
---
|
|
- name: Verify
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Include vars
|
|
ansible.builtin.include_vars:
|
|
file: ../../defaults/main.yml
|
|
|
|
- name: Get Nomad service state
|
|
ansible.builtin.systemd:
|
|
name: "{{ nomad_service_name }}"
|
|
state: started
|
|
register: service_result
|
|
|
|
- name: Check that Nomad service is running
|
|
ansible.builtin.assert:
|
|
that:
|
|
- service_result.status['ActiveState'] == "active"
|
|
- service_result.status['Result'] == "success"
|
|
- service_result.state == "started"
|