2019-08-27 22:36:55 +02:00
|
|
|
# ONLINE_TOKEN='XXX' ansible-playbook ./test/legacy/online.yml --tags test_online_server_info
|
2018-09-03 14:24:52 +02:00
|
|
|
|
|
|
|
- name: Get server information and register it in a variable
|
2019-08-27 22:36:55 +02:00
|
|
|
online_server_info:
|
|
|
|
register: servers_info
|
2018-09-03 14:24:52 +02:00
|
|
|
|
|
|
|
- name: Display server variable
|
|
|
|
debug:
|
2019-08-27 22:36:55 +02:00
|
|
|
var: servers_info
|
2018-09-03 14:24:52 +02:00
|
|
|
|
2019-08-27 22:36:55 +02:00
|
|
|
- name: Ensure retrieval of servers info is success
|
2018-09-03 14:24:52 +02:00
|
|
|
assert:
|
|
|
|
that:
|
2019-08-27 22:36:55 +02:00
|
|
|
- servers_info is success
|