22 lines
430 B
YAML
22 lines
430 B
YAML
---
|
|
|
|
- name: Check hostname
|
|
ansible.windows.win_command: hostname
|
|
register: hostname_output
|
|
|
|
|
|
- name: display hostname
|
|
debug:
|
|
msg: "Hostname: {{ hostname_output.stdout_lines[0] }}"
|
|
|
|
|
|
#- name: Test API
|
|
# win_shell: "C:\\Windows\\system32\\curl --silent http://{{ ansible_ssh_host }}:5000/disk"
|
|
# register: api_test_output
|
|
#
|
|
#- name: Show Test Results
|
|
# debug:
|
|
# msg: "{{ api_test_output.stdout_lines }}"
|
|
|
|
|
|
... |