Обновить playbooks/win_dns_ps.yml
This commit is contained in:
15
playbooks/win_dns_ps.yml
Normal file
15
playbooks/win_dns_ps.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Check Windows DNS settings
|
||||
hosts: all
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
- name: Check DNS servers
|
||||
ansible.windows.win_shell: |
|
||||
Get-DnsClientServerAddress -AddressFamily IPv4 |
|
||||
Select-Object InterfaceAlias, ServerAddresses
|
||||
register: dns_result
|
||||
|
||||
- name: Display DNS settings
|
||||
debug:
|
||||
msg: "{{ dns_result.stdout }}"
|
||||
Reference in New Issue
Block a user