Files
semaphore/test-playbooks/win_dns_ps.yml

20 lines
394 B
YAML

---
- name: Test Windows connection
hosts: windows_all
gather_facts: no
vars:
ansible_connection: winrm
ansible_port: 5985
ansible_winrm_scheme: http # явно указываем HTTP
tasks:
- name: Test WinRM ping
win_ping:
- name: Get hostname
win_command: hostname
register: result
- debug:
var: result.stdout