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
378 B
YAML
15 lines
378 B
YAML
6 years ago
|
# 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
|