ansible.windows icon indicating copy to clipboard operation
ansible.windows copied to clipboard

RFE: win_dns_client should support diff and return what changes where made

Open opoplawski opened this issue 8 months ago • 0 comments

SUMMARY

win_dns_client does not give any information about what was changed. It should support diff mode and return variables indicating the adapters changed.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

win_dns_client

ADDITIONAL INFORMATION
    -  ansible.windows.win_dns_client:
        adapter_names: '*'
        dns_servers:
          - 10.0.0.1
          - 10.0.0.2
result: {
  "changed": true,
  "modified": ["Ethernet Connection 1"], 
  "diff": {
    "before": { [ "name": "Ethernet Connection 1", "dns_servers": ["192.168.1.1"] },
    "after": { [  "name": "Ethernet Connection 1", "dns_servers": ["10.0.0.1", "10.0.0.2"] }
  }
}
<!--- HINT: You can also paste gist.github.com links for larger files -->

opoplawski avatar Oct 18 '23 20:10 opoplawski