From ee27c688fdecca4b991fafa72e6f154344f61fef Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 9 Dec 2016 13:49:43 +0000 Subject: [PATCH] Unquote strings that do not need quotes and retab - clustering/consul.py (#18834) --- lib/ansible/modules/clustering/consul.py | 105 +++++++++++------------ 1 file changed, 52 insertions(+), 53 deletions(-) diff --git a/lib/ansible/modules/clustering/consul.py b/lib/ansible/modules/clustering/consul.py index fd69726eef9..f523b96ae4f 100644 --- a/lib/ansible/modules/clustering/consul.py +++ b/lib/ansible/modules/clustering/consul.py @@ -172,59 +172,58 @@ options: """ EXAMPLES = ''' - - name: register nginx service with the local consul agent - consul: - service_name: nginx - service_port: 80 - - - name: register nginx service with curl check - consul: - service_name: nginx - service_port: 80 - script: "curl http://localhost" - interval: 60s - - - name: register nginx with an http check - consul: - service_name: nginx - service_port: 80 - interval: 60s - http: "http://localhost:80/status" - - - name: register external service nginx available at 10.1.5.23 - consul: - service_name: nginx - service_port: 80 - service_address: 10.1.5.23 - - - name: register nginx with some service tags - consul: - service_name: nginx - service_port: 80 - tags: - - prod - - webservers - - - name: remove nginx service - consul: - service_name: nginx - state: absent - - - name: create a node level check to test disk usage - consul: - check_name: Disk usage - check_id: disk_usage - script: "/opt/disk_usage.py" - interval: 5m - - - name: register an http check against a service that's already registered - consul: - check_name: nginx-check2 - check_id: nginx-check2 - service_id: nginx - interval: 60s - http: "http://localhost:80/morestatus" - +- name: register nginx service with the local consul agent + consul: + service_name: nginx + service_port: 80 + +- name: register nginx service with curl check + consul: + service_name: nginx + service_port: 80 + script: curl http://localhost + interval: 60s + +- name: register nginx with an http check + consul: + service_name: nginx + service_port: 80 + interval: 60s + http: http://localhost:80/status + +- name: register external service nginx available at 10.1.5.23 + consul: + service_name: nginx + service_port: 80 + service_address: 10.1.5.23 + +- name: register nginx with some service tags + consul: + service_name: nginx + service_port: 80 + tags: + - prod + - webservers + +- name: remove nginx service + consul: + service_name: nginx + state: absent + +- name: create a node level check to test disk usage + consul: + check_name: Disk usage + check_id: disk_usage + script: /opt/disk_usage.py + interval: 5m + +- name: register an http check against a service that's already registered + consul: + check_name: nginx-check2 + check_id: nginx-check2 + service_id: nginx + interval: 60s + http: http://localhost:80/morestatus ''' try: