1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/legacy/roles/online_server_facts/tasks/main.yml

15 lines
378 B
YAML
Raw Normal View History

2018-09-03 14:24:52 +02:00
# ONLINE_TOKEN='XXX' ansible-playbook ./test/legacy/online.yml --tags test_online_server_facts
- name: Get server information and register it in a variable
online_server_facts:
register: servers_facts
- name: Display server variable
debug:
var: servers_facts
- name: Ensure retrieval of servers facts is success
assert:
that:
- servers_facts is success