Ansible/playbook/windows/getSystemInfo.yml

17 lines
324 B
YAML
Raw Permalink Normal View History

# This is a testing script to see what box you are connected to.
# We will run a shell command to get our output.
- name: Get SystemInfo
hosts: windows
tasks:
- name: Run SystemInfo
win_shell: systeminfo
register: sysinfo
- debug: msg="{{ sysinfo.stdout_lines }}"