Добавить test-playbooks/win_dns_ps.yml

This commit is contained in:
2025-12-02 16:01:25 +00:00
parent ec35b4e015
commit 3fa1c1fad5

View File

@@ -0,0 +1,10 @@
---
- name: win_powershell_exec
hosts: windows_all
tasks:
- name: check DNS
win_shell: |
Get-DnsClientServerAddress -InterfaceIndex (Get-NetAdapter|where Status -eq "Up").ifindex -ErrorAction SilentlyContinue
register: command_output
- name: command output
ansible.builtin.debug: