From 7ab67fb2fea8d3850ee50c3725dcfb5a48039551 Mon Sep 17 00:00:00 2001 From: mttocs Date: Thu, 2 May 2019 16:52:58 -0500 Subject: [PATCH] Add PTR Examples to nsupdate module +label: docsite_pr --- lib/ansible/modules/net_tools/nsupdate.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/ansible/modules/net_tools/nsupdate.py b/lib/ansible/modules/net_tools/nsupdate.py index a6056134022..987a448d04a 100644 --- a/lib/ansible/modules/net_tools/nsupdate.py +++ b/lib/ansible/modules/net_tools/nsupdate.py @@ -112,6 +112,25 @@ EXAMPLES = ''' record: "puppet" type: "CNAME" state: absent + +- name: Add 1.1.168.192.in-addr.arpa. PTR for ansible.example.org + nsupdate: + key_name: "nsupdate" + key_secret: "+bFQtBCta7j2vWkjPkAFtgA==" + server: "10.1.1.1" + record: "1.1.168.192.in-addr.arpa." + type: "PTR" + value: "ansible.example.org." + state: present + +- name: Remove 1.1.168.192.in-addr.arpa. PTR + nsupdate: + key_name: "nsupdate" + key_secret: "+bFQtBCta7j2vWkjPkAFtgA==" + server: "10.1.1.1" + record: "1.1.168.192.in-addr.arpa." + type: "PTR" + state: absent ''' RETURN = '''