summaryrefslogtreecommitdiffstats
path: root/roles/lib_dyn
diff options
context:
space:
mode:
authorRussell Harrison <rharriso@redhat.com>2016-02-16 14:41:31 -0500
committerRussell Harrison <rharriso@redhat.com>2016-02-16 14:41:31 -0500
commit6192d36a990f266ce68842929c6744a726bd4d52 (patch)
treefa17449554db402cc3dcf1c067f68a90edeb068c /roles/lib_dyn
parent14cfdf0e1f4e49ff1ed7ce216c2893e3f052d33c (diff)
downloadopenshift-6192d36a990f266ce68842929c6744a726bd4d52.tar.gz
openshift-6192d36a990f266ce68842929c6744a726bd4d52.tar.bz2
openshift-6192d36a990f266ce68842929c6744a726bd4d52.tar.xz
openshift-6192d36a990f266ce68842929c6744a726bd4d52.zip
Adding examples to the dyn_record module
Diffstat (limited to 'roles/lib_dyn')
-rw-r--r--roles/lib_dyn/library/dyn_record.py20
1 files changed, 20 insertions, 0 deletions
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