mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
parent
b7d9feb7dc
commit
9050c7abeb
2 changed files with 14 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- vultr_server_facts - fixed facts gathering fails if firewall is enabled.
|
|
@ -19,12 +19,17 @@
|
||||||
that:
|
that:
|
||||||
- ansible_facts.vultr_server_facts | count == 0
|
- ansible_facts.vultr_server_facts | count == 0
|
||||||
|
|
||||||
- name: Create the server
|
- name: setup firewall group
|
||||||
|
vultr_firewall_group:
|
||||||
|
name: test_vultr_server_facts
|
||||||
|
|
||||||
|
- name: setup create the server
|
||||||
vultr_server:
|
vultr_server:
|
||||||
name: '{{ vultr_server_name }}'
|
name: '{{ vultr_server_name }}'
|
||||||
os: '{{ vultr_server_os }}'
|
os: '{{ vultr_server_os }}'
|
||||||
plan: '{{ vultr_server_plan }}'
|
plan: '{{ vultr_server_plan }}'
|
||||||
region: '{{ vultr_server_region }}'
|
region: '{{ vultr_server_region }}'
|
||||||
|
firewall_group: test_vultr_server_facts
|
||||||
|
|
||||||
- name: test gather vultr server facts in check mode
|
- name: test gather vultr server facts in check mode
|
||||||
vultr_server_facts:
|
vultr_server_facts:
|
||||||
|
@ -47,7 +52,12 @@
|
||||||
pause:
|
pause:
|
||||||
minutes: 5
|
minutes: 5
|
||||||
|
|
||||||
- name: Delete the server
|
- name: cleanup the server
|
||||||
vultr_server:
|
vultr_server:
|
||||||
name: '{{ vultr_server_name }}'
|
name: '{{ vultr_server_name }}'
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
- name: cleanup firewall group
|
||||||
|
vultr_firewall_group:
|
||||||
|
name: test_vultr_server_facts
|
||||||
|
state: absent
|
||||||
|
|
Loading…
Reference in a new issue