From 3fa1c1fad53cdb44ef635efcc71b0edf9fdaa6ea Mon Sep 17 00:00:00 2001 From: ogrechko Date: Tue, 2 Dec 2025 16:01:25 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20test-playbooks/win=5Fdns=5Fps.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-playbooks/win_dns_ps.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test-playbooks/win_dns_ps.yml diff --git a/test-playbooks/win_dns_ps.yml b/test-playbooks/win_dns_ps.yml new file mode 100644 index 0000000..a2316b1 --- /dev/null +++ b/test-playbooks/win_dns_ps.yml @@ -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: \ No newline at end of file