mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
372 B
YAML
15 lines
372 B
YAML
5 years ago
|
# ONLINE_TOKEN='XXX' ansible-playbook ./test/legacy/online.yml --tags test_online_server_info
|
||
6 years ago
|
|
||
|
- name: Get server information and register it in a variable
|
||
5 years ago
|
online_server_info:
|
||
|
register: servers_info
|
||
6 years ago
|
|
||
|
- name: Display server variable
|
||
|
debug:
|
||
5 years ago
|
var: servers_info
|
||
6 years ago
|
|
||
5 years ago
|
- name: Ensure retrieval of servers info is success
|
||
6 years ago
|
assert:
|
||
|
that:
|
||
5 years ago
|
- servers_info is success
|