From 6192d36a990f266ce68842929c6744a726bd4d52 Mon Sep 17 00:00:00 2001 From: Russell Harrison Date: Tue, 16 Feb 2016 14:41:31 -0500 Subject: Adding examples to the dyn_record module --- roles/lib_dyn/library/dyn_record.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'roles/lib_dyn') diff --git a/roles/lib_dyn/library/dyn_record.py b/roles/lib_dyn/library/dyn_record.py index f2796ccf2..901395ac9 100644 --- a/roles/lib_dyn/library/dyn_record.py +++ b/roles/lib_dyn/library/dyn_record.py @@ -95,6 +95,26 @@ requirements: [ dyn ] author: "Russell Harrison" ''' +EXAMPLES = ''' +- name: Update CNAME record + local_action: + module: dyn_record + state: present + record_fqdn: www.example.com + zone: example.com + record_type: CNAME + record_value: web1.example.com + +- name: Update A record + local_action: + module: dyn_record + state: present + record_fqdn: web1.example.com + zone: example.com + record_value: 10.0.0.10 + record_type: A +''' + try: IMPORT_ERROR = False from dyn.tm.session import DynectSession -- cgit v1.2.3