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

15 lines
372 B
YAML
Raw Normal View History

# 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
online_server_info:
register: servers_info
2018-09-03 14:24:52 +02:00
- name: Display server variable
debug:
var: servers_info
2018-09-03 14:24:52 +02:00
- name: Ensure retrieval of servers info is success
2018-09-03 14:24:52 +02:00
assert:
that:
- servers_info is success