|
|
@ -17,7 +17,7 @@
|
|
|
|
- name: verify test gather vultr server facts - empty resources
|
|
|
|
- name: verify test gather vultr server facts - empty resources
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- ansible_facts.vultr_server_facts | count == 0
|
|
|
|
- ansible_facts.vultr_server_facts | selectattr('name','equalto',vultr_server_name) | list | count == 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: setup firewall group
|
|
|
|
- name: setup firewall group
|
|
|
|
vultr_firewall_group:
|
|
|
|
vultr_firewall_group:
|
|
|
@ -38,7 +38,7 @@
|
|
|
|
- name: verify test gather vultr server facts in check mode
|
|
|
|
- name: verify test gather vultr server facts in check mode
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- ansible_facts.vultr_server_facts|selectattr('name','equalto','{{ vultr_server_name }}') | list | count == 1
|
|
|
|
- ansible_facts.vultr_server_facts|selectattr('name','equalto',vultr_server_name) | list | count == 1
|
|
|
|
|
|
|
|
|
|
|
|
- name: test gather vultr server facts
|
|
|
|
- name: test gather vultr server facts
|
|
|
|
vultr_server_facts:
|
|
|
|
vultr_server_facts:
|
|
|
@ -46,7 +46,7 @@
|
|
|
|
- name: verify test gather vultr server facts
|
|
|
|
- name: verify test gather vultr server facts
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- ansible_facts.vultr_server_facts|selectattr('name','equalto','{{ vultr_server_name }}') | list | count == 1
|
|
|
|
- ansible_facts.vultr_server_facts|selectattr('name','equalto',vultr_server_name) | list | count == 1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Pause for 5 min before deleting the VM
|
|
|
|
- name: Pause for 5 min before deleting the VM
|
|
|
|
pause:
|
|
|
|
pause:
|
|
|
|