ansible/test/legacy/roles/vultr_account_facts/tasks/main.yml

25 lines
999 B
YAML
Raw Normal View History

2018-01-21 22:54:12 +01:00
# Copyright (c) 2018, René Moser <mail@renemoser.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
---
- name: test gather vultr account facts in check mode
vultr_account_facts:
2018-01-21 22:54:12 +01:00
check_mode: yes
- name: verify test gather vultr account facts in check mode
assert:
that:
- ansible_facts.vultr_account_facts.balance is defined
- ansible_facts.vultr_account_facts.last_payment_amount is defined
- ansible_facts.vultr_account_facts.last_payment_date is defined
- ansible_facts.vultr_account_facts.last_payment_amount is defined
- name: test gather vultr account fact
vultr_account_facts:
2018-01-21 22:54:12 +01:00
- name: verify test gather vultr account facts
assert:
that:
- ansible_facts.vultr_account_facts.balance is defined
- ansible_facts.vultr_account_facts.last_payment_amount is defined
- ansible_facts.vultr_account_facts.last_payment_date is defined
- ansible_facts.vultr_account_facts.last_payment_amount is defined