From 2ea57deb725b2134f21cce66c7cb0eb0007a036f Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 2 Dec 2016 15:49:38 +0000 Subject: [PATCH] Native YAML - cloud/centurylink/clc_loadbalancer.py (#3632) --- .../extras/cloud/centurylink/clc_loadbalancer.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/centurylink/clc_loadbalancer.py b/lib/ansible/modules/extras/cloud/centurylink/clc_loadbalancer.py index abb421c755..dcbbfd0bc8 100644 --- a/lib/ansible/modules/extras/cloud/centurylink/clc_loadbalancer.py +++ b/lib/ansible/modules/extras/cloud/centurylink/clc_loadbalancer.py @@ -109,7 +109,8 @@ EXAMPLES = ''' location: WA1 port: 443 nodes: - - { 'ipAddress': '10.11.22.123', 'privatePort': 80 } + - ipAddress: 10.11.22.123 + privatePort: 80 state: present - name: Add node to an existing loadbalancer pool @@ -124,7 +125,8 @@ EXAMPLES = ''' location: WA1 port: 443 nodes: - - { 'ipAddress': '10.11.22.234', 'privatePort': 80 } + - ipAddress: 10.11.22.234 + privatePort: 80 state: nodes_present - name: Remove node from an existing loadbalancer pool @@ -139,7 +141,8 @@ EXAMPLES = ''' location: WA1 port: 443 nodes: - - { 'ipAddress': '10.11.22.234', 'privatePort': 80 } + - ipAddress: 10.11.22.234 + privatePort: 80 state: nodes_absent - name: Delete LoadbalancerPool @@ -154,7 +157,8 @@ EXAMPLES = ''' location: WA1 port: 443 nodes: - - { 'ipAddress': '10.11.22.123', 'privatePort': 80 } + - ipAddress: 10.11.22.123 + privatePort: 80 state: port_absent - name: Delete Loadbalancer @@ -169,7 +173,8 @@ EXAMPLES = ''' location: WA1 port: 443 nodes: - - { 'ipAddress': '10.11.22.123', 'privatePort': 80 } + - ipAddress: 10.11.22.123 + privatePort: 80 state: absent '''