mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit d12951b9c7
)
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
7cd96ef3b6
commit
d0731b111c
2 changed files with 18 additions and 1 deletions
|
@ -4,4 +4,3 @@ destructive
|
|||
skip/aix
|
||||
skip/centos6
|
||||
skip/freebsd
|
||||
disabled # FIXME
|
||||
|
|
|
@ -56,6 +56,15 @@
|
|||
content: "{{ lookup('file', 'job.hcl') }}"
|
||||
register: job_deployed_idempotence
|
||||
|
||||
- name: get list of nomad jobs
|
||||
nomad_job_info:
|
||||
host: localhost
|
||||
use_ssl: false
|
||||
register: list_nomad_jobs
|
||||
|
||||
- debug:
|
||||
msg: "{{ list_nomad_jobs }}"
|
||||
|
||||
- name: run check delete nomad job
|
||||
nomad_job:
|
||||
host: localhost
|
||||
|
@ -80,6 +89,15 @@
|
|||
name: example
|
||||
register: get_job_delete
|
||||
|
||||
- name: get list of nomad jobs
|
||||
nomad_job_info:
|
||||
host: localhost
|
||||
use_ssl: false
|
||||
register: list_nomad_jobs
|
||||
|
||||
- debug:
|
||||
msg: "{{ list_nomad_jobs }}"
|
||||
|
||||
- name: assert idempotence
|
||||
assert:
|
||||
that:
|
||||
|
|
Loading…
Reference in a new issue