diff options
author | Russell Harrison <rharriso@redhat.com> | 2016-02-16 14:41:31 -0500 |
---|---|---|
committer | Russell Harrison <rharriso@redhat.com> | 2016-02-16 14:41:31 -0500 |
commit | 6192d36a990f266ce68842929c6744a726bd4d52 (patch) | |
tree | fa17449554db402cc3dcf1c067f68a90edeb068c /roles/lib_dyn | |
parent | 14cfdf0e1f4e49ff1ed7ce216c2893e3f052d33c (diff) | |
download | openshift-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.py | 20 |
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 |