From 30ed5f620a27195c1c5cccbd457a29aea1cb742b Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 27 Jul 2016 15:47:25 -0700 Subject: [PATCH] Update examples in the documentation to yaml syntax --- .../cloud/ovh/ovh_ip_loadbalancing_backend.py | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py b/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py index ab330fcbd9..e1d331d2bf 100644 --- a/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py +++ b/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py @@ -83,16 +83,26 @@ options: EXAMPLES = ''' # Adds or modify the backend '212.1.1.1' to a # loadbalancing 'ip-1.1.1.1' -- ovh_ip_loadbalancing name=ip-1.1.1.1 backend=212.1.1.1 - state=present probe=none weight=8 - endpoint=ovh-eu application_key=yourkey - application_secret=yoursecret consumer_key=yourconsumerkey +- ovh_ip_loadbalancing: + name: ip-1.1.1.1 + backend: 212.1.1.1 + state: present + probe: none + weight: 8 + endpoint: ovh-eu + application_key: yourkey + application_secret: yoursecret + consumer_key: yourconsumerkey -# Removes a backend '212.1.1.1' from a loadbalancing -# 'ip-1.1.1.1' -- ovh_ip_loadbalancing name=ip-1.1.1.1 backend=212.1.1.1 - state=absent endpoint=ovh-eu application_key=yourkey - application_secret=yoursecret consumer_key=yourconsumerkey +# Removes a backend '212.1.1.1' from a loadbalancing 'ip-1.1.1.1' +- ovh_ip_loadbalancing: + name: ip-1.1.1.1 + backend: 212.1.1.1 + state: absent + endpoint: ovh-eu + application_key: yourkey + application_secret: yoursecret + consumer_key: yourconsumerkey ''' RETURN = ''' @@ -295,9 +305,6 @@ def main(): module.exit_json(changed=moduleChanged) - # We should never reach here - module.fail_json(msg='Internal ovh_ip_loadbalancing_backend module error') - # import module snippets from ansible.module_utils.basic import *