From 2d79589515278e5b9f618504aea94c9a635c754d Mon Sep 17 00:00:00 2001 From: curry9999 Date: Thu, 9 Aug 2018 08:10:26 +0900 Subject: [PATCH] To improve readability, we added a line feed. (#43801) * modified: google/gcp_compute_backend_bucket.py modified: google/gcp_compute_backend_service.py modified: google/gcp_compute_forwarding_rule.py modified: google/gcp_compute_global_forwarding_rule.py modified: google/gcp_compute_image.py modified: google/gcp_compute_instance.py modified: google/gcp_compute_instance_group.py modified: google/gcp_compute_instance_group_manager.py modified: google/gcp_compute_instance_template.py modified: google/gcp_compute_route.py modified: google/gcp_compute_subnetwork.py modified: google/gcp_compute_target_http_proxy.py modified: google/gcp_compute_target_https_proxy.py modified: google/gcp_compute_target_ssl_proxy.py modified: google/gcp_compute_target_tcp_proxy.py modified: google/gcp_compute_url_map.py modified: google/gcp_container_node_pool.py modified: google/gcp_dns_resource_record_set.py modified: google/gcp_pubsub_subscription.py modified: google/gcp_storage_bucket_access_control.py * modified: lib/ansible/modules/cloud/amazon/aws_ses_identity.py modified: lib/ansible/modules/cloud/amazon/route53_facts.py modified: lib/ansible/modules/cloud/cloudscale/cloudscale_server.py modified: lib/ansible/modules/network/aos/_aos_logical_device.py modified: lib/ansible/modules/network/aos/_aos_rack_type.py modified: lib/ansible/modules/network/aos/_aos_template.py modified: lib/ansible/modules/network/cumulus/nclu.py modified: lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py modified: lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py --- lib/ansible/modules/cloud/amazon/aws_ses_identity.py | 2 ++ lib/ansible/modules/cloud/amazon/route53_facts.py | 1 + lib/ansible/modules/cloud/cloudscale/cloudscale_server.py | 1 + .../modules/cloud/google/gcp_compute_backend_bucket.py | 1 + .../modules/cloud/google/gcp_compute_backend_service.py | 2 ++ .../modules/cloud/google/gcp_compute_forwarding_rule.py | 2 ++ .../cloud/google/gcp_compute_global_forwarding_rule.py | 6 ++++++ lib/ansible/modules/cloud/google/gcp_compute_image.py | 1 + lib/ansible/modules/cloud/google/gcp_compute_instance.py | 3 +++ .../modules/cloud/google/gcp_compute_instance_group.py | 1 + .../cloud/google/gcp_compute_instance_group_manager.py | 3 +++ .../modules/cloud/google/gcp_compute_instance_template.py | 2 ++ lib/ansible/modules/cloud/google/gcp_compute_route.py | 1 + lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py | 1 + .../modules/cloud/google/gcp_compute_target_http_proxy.py | 4 ++++ .../modules/cloud/google/gcp_compute_target_https_proxy.py | 5 +++++ .../modules/cloud/google/gcp_compute_target_ssl_proxy.py | 4 ++++ .../modules/cloud/google/gcp_compute_target_tcp_proxy.py | 3 +++ lib/ansible/modules/cloud/google/gcp_compute_url_map.py | 3 +++ lib/ansible/modules/cloud/google/gcp_container_node_pool.py | 1 + .../modules/cloud/google/gcp_dns_resource_record_set.py | 1 + lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py | 1 + .../cloud/google/gcp_storage_bucket_access_control.py | 1 + lib/ansible/modules/network/aos/_aos_logical_device.py | 1 + lib/ansible/modules/network/aos/_aos_rack_type.py | 1 + lib/ansible/modules/network/aos/_aos_template.py | 1 + lib/ansible/modules/network/cumulus/nclu.py | 3 +++ .../web_infrastructure/ansible_tower/tower_job_launch.py | 1 + .../web_infrastructure/ansible_tower/tower_job_wait.py | 1 + 29 files changed, 58 insertions(+) diff --git a/lib/ansible/modules/cloud/amazon/aws_ses_identity.py b/lib/ansible/modules/cloud/amazon/aws_ses_identity.py index ad4282ea934..3e15c32c6b0 100644 --- a/lib/ansible/modules/cloud/amazon/aws_ses_identity.py +++ b/lib/ansible/modules/cloud/amazon/aws_ses_identity.py @@ -114,6 +114,7 @@ EXAMPLES = ''' state: present purge_subscriptions: False register: topic_info + - name: Deliver feedback to topic instead of owner email aws_ses_identity: identity: example@example.com @@ -134,6 +135,7 @@ EXAMPLES = ''' state: present purge_subscriptions: False register: topic_info + - name: Delivery notifications to topic aws_ses_identity: identity: example@example.com diff --git a/lib/ansible/modules/cloud/amazon/route53_facts.py b/lib/ansible/modules/cloud/amazon/route53_facts.py index f0e491b90a8..594d1aa4bb9 100644 --- a/lib/ansible/modules/cloud/amazon/route53_facts.py +++ b/lib/ansible/modules/cloud/amazon/route53_facts.py @@ -163,6 +163,7 @@ EXAMPLES = ''' query: hosted_zone max_items: 1 register: first_facts + - name: example for using next_marker route53_facts: query: hosted_zone diff --git a/lib/ansible/modules/cloud/cloudscale/cloudscale_server.py b/lib/ansible/modules/cloud/cloudscale/cloudscale_server.py index 63248d7b2eb..d84b68c62a0 100644 --- a/lib/ansible/modules/cloud/cloudscale/cloudscale_server.py +++ b/lib/ansible/modules/cloud/cloudscale/cloudscale_server.py @@ -95,6 +95,7 @@ options: EXAMPLES = ''' # Start a server (if it does not exist) and register the server details + - name: Start cloudscale.ch server cloudscale_server: name: my-shiny-cloudscale-server diff --git a/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py b/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py index 9f1c22765b8..2d18e7c8aea 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py @@ -87,6 +87,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/devstorage.full_control state: present register: bucket + - name: create a backend bucket gcp_compute_backend_bucket: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py b/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py index 40bb6a81fb9..101180115e1 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py @@ -247,6 +247,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancegroup + - name: create a http health check gcp_compute_http_health_check: name: 'httphealthcheck-backendservice' @@ -261,6 +262,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: healthcheck + - name: create a backend service gcp_compute_backend_service: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py b/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py index 9faca26add2..ac632007697 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py @@ -161,6 +161,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: address + - name: create a target pool gcp_compute_target_pool: name: 'targetpool-forwardingrule' @@ -172,6 +173,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: targetpool + - name: create a forwarding rule gcp_compute_forwarding_rule: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py b/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py index 503e131664c..93c64e46384 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py @@ -160,6 +160,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: globaladdress + - name: create a instance group gcp_compute_instance_group: name: 'instancegroup-globalforwardingrule' @@ -171,6 +172,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancegroup + - name: create a http health check gcp_compute_http_health_check: name: 'httphealthcheck-globalforwardingrule' @@ -185,6 +187,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: healthcheck + - name: create a backend service gcp_compute_backend_service: name: 'backendservice-globalforwardingrule' @@ -200,6 +203,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: backendservice + - name: create a url map gcp_compute_url_map: name: 'urlmap-globalforwardingrule' @@ -211,6 +215,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: urlmap + - name: create a target http proxy gcp_compute_target_http_proxy: name: 'targethttpproxy-globalforwardingrule' @@ -222,6 +227,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: httpproxy + - name: create a global forwarding rule gcp_compute_global_forwarding_rule: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_image.py b/lib/ansible/modules/cloud/google/gcp_compute_image.py index c096ada3b41..a35b2a39fc5 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_image.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_image.py @@ -191,6 +191,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: disk + - name: create a image gcp_compute_image: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance.py b/lib/ansible/modules/cloud/google/gcp_compute_instance.py index 67811eb9633..ac0d5673d8e 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance.py @@ -364,6 +364,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: disk + - name: create a network gcp_compute_network: name: 'network-instance' @@ -374,6 +375,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: network + - name: create a address gcp_compute_address: name: 'address-instance' @@ -385,6 +387,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: address + - name: create a instance gcp_compute_instance: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py b/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py index e6f5bc3efcc..ec2fcb9fa49 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py @@ -108,6 +108,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: network + - name: create a instance group gcp_compute_instance_group: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py b/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py index 6283afe093b..fefe7f32be2 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py @@ -116,6 +116,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: network + - name: create a address gcp_compute_address: name: 'address-instancetemplate' @@ -127,6 +128,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: address + - name: create a instance template gcp_compute_instance_template: name: "{{ resource_name }}" @@ -150,6 +152,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancetemplate + - name: create a instance group manager gcp_compute_instance_group_manager: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py b/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py index 52b9d543bc0..f086c5f756d 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py @@ -365,6 +365,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: network + - name: create a address gcp_compute_address: name: 'address-instancetemplate' @@ -376,6 +377,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: address + - name: create a instance template gcp_compute_instance_template: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_route.py b/lib/ansible/modules/cloud/google/gcp_compute_route.py index 793b6c6a1ac..15559356573 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_route.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_route.py @@ -130,6 +130,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: network + - name: create a route gcp_compute_route: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py b/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py index 40bbfc43caf..3d3e2cf8ab2 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py @@ -117,6 +117,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: network + - name: create a subnetwork gcp_compute_subnetwork: name: 'ansiblenet' diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py index 0434660cf0c..7b8fe53b2ff 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py @@ -79,6 +79,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancegroup + - name: create a http health check gcp_compute_http_health_check: name: 'httphealthcheck-targethttpproxy' @@ -93,6 +94,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: healthcheck + - name: create a backend service gcp_compute_backend_service: name: 'backendservice-targethttpproxy' @@ -108,6 +110,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: backendservice + - name: create a url map gcp_compute_url_map: name: 'urlmap-targethttpproxy' @@ -119,6 +122,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: urlmap + - name: create a target http proxy gcp_compute_target_http_proxy: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py index a5436c4381f..46deaf099bc 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py @@ -84,6 +84,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancegroup + - name: create a http health check gcp_compute_http_health_check: name: 'httphealthcheck-targethttpsproxy' @@ -98,6 +99,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: healthcheck + - name: create a backend service gcp_compute_backend_service: name: 'backendservice-targethttpsproxy' @@ -113,6 +115,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: backendservice + - name: create a url map gcp_compute_url_map: name: 'urlmap-targethttpsproxy' @@ -124,6 +127,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: urlmap + - name: create a ssl certificate gcp_compute_ssl_certificate: name: 'sslcert-targethttpsproxy' @@ -160,6 +164,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: sslcert + - name: create a target https proxy gcp_compute_target_https_proxy: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py index 52dc5c3be2c..6103751ceff 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py @@ -90,6 +90,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancegroup + - name: create a health check gcp_compute_health_check: name: 'healthcheck-targetsslproxy' @@ -108,6 +109,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: healthcheck + - name: create a backend service gcp_compute_backend_service: name: 'backendservice-targetsslproxy' @@ -123,6 +125,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: backendservice + - name: create a ssl certificate gcp_compute_ssl_certificate: name: 'sslcert-targetsslproxy' @@ -159,6 +162,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: sslcert + - name: create a target ssl proxy gcp_compute_target_ssl_proxy: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py index 71e929d4d75..3fb673307b8 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py @@ -85,6 +85,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancegroup + - name: create a health check gcp_compute_health_check: name: 'healthcheck-targettcpproxy' @@ -103,6 +104,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: healthcheck + - name: create a backend service gcp_compute_backend_service: name: 'backendservice-targettcpproxy' @@ -118,6 +120,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: backendservice + - name: create a target tcp proxy gcp_compute_target_tcp_proxy: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_compute_url_map.py b/lib/ansible/modules/cloud/google/gcp_compute_url_map.py index bab7d289878..874341a2ee8 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_url_map.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_url_map.py @@ -155,6 +155,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: instancegroup + - name: create a http health check gcp_compute_http_health_check: name: 'httphealthcheck-urlmap' @@ -169,6 +170,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: healthcheck + - name: create a backend service gcp_compute_backend_service: name: 'backendservice-urlmap' @@ -184,6 +186,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/compute state: present register: backendservice + - name: create a url map gcp_compute_url_map: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_container_node_pool.py b/lib/ansible/modules/cloud/google/gcp_container_node_pool.py index 039bf39ffb8..88e76debec2 100644 --- a/lib/ansible/modules/cloud/google/gcp_container_node_pool.py +++ b/lib/ansible/modules/cloud/google/gcp_container_node_pool.py @@ -221,6 +221,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/cloud-platform state: present register: cluster + - name: create a node pool gcp_container_node_pool: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py b/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py index bb1a2c2d089..492a938a169 100644 --- a/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py +++ b/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py @@ -89,6 +89,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/ndev.clouddns.readwrite state: present register: managed_zone + - name: create a resource record set gcp_dns_resource_record_set: name: 'www.testzone-4.com.' diff --git a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py index 53fbb2d3717..a043e0869ba 100644 --- a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py +++ b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py @@ -98,6 +98,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/pubsub state: present register: topic + - name: create a subscription gcp_pubsub_subscription: name: testObject diff --git a/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py b/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py index 5f12aa8b6c0..1e6df37d283 100644 --- a/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py +++ b/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py @@ -108,6 +108,7 @@ EXAMPLES = ''' - https://www.googleapis.com/auth/devstorage.full_control state: present register: bucket + - name: create a bucket access control gcp_storage_bucket_access_control: bucket: "{{ bucket }}" diff --git a/lib/ansible/modules/network/aos/_aos_logical_device.py b/lib/ansible/modules/network/aos/_aos_logical_device.py index 7cf6022be20..4634ca53801 100644 --- a/lib/ansible/modules/network/aos/_aos_logical_device.py +++ b/lib/ansible/modules/network/aos/_aos_logical_device.py @@ -87,6 +87,7 @@ EXAMPLES = ''' name: "my-logical-device" state: present register: logical_device + - name: "Save Logical Device into a JSON file 2/3" copy: content: "{{ logical_device.value | to_nice_json }}" diff --git a/lib/ansible/modules/network/aos/_aos_rack_type.py b/lib/ansible/modules/network/aos/_aos_rack_type.py index 83aa969f130..bacf9d948b1 100644 --- a/lib/ansible/modules/network/aos/_aos_rack_type.py +++ b/lib/ansible/modules/network/aos/_aos_rack_type.py @@ -87,6 +87,7 @@ EXAMPLES = ''' name: "my-rack-type" state: present register: rack_type + - name: "Save Rack Type into a JSON file 2/3" copy: content: "{{ rack_type.value | to_nice_json }}" diff --git a/lib/ansible/modules/network/aos/_aos_template.py b/lib/ansible/modules/network/aos/_aos_template.py index c26bb95b73f..56b941d1f44 100644 --- a/lib/ansible/modules/network/aos/_aos_template.py +++ b/lib/ansible/modules/network/aos/_aos_template.py @@ -96,6 +96,7 @@ EXAMPLES = ''' name: "my-template" state: present register: template + - name: "Save Template into a JSON file 2/3" copy: content: "{{ template.value | to_nice_json }}" diff --git a/lib/ansible/modules/network/cumulus/nclu.py b/lib/ansible/modules/network/cumulus/nclu.py index d0f422708fa..71465d68689 100644 --- a/lib/ansible/modules/network/cumulus/nclu.py +++ b/lib/ansible/modules/network/cumulus/nclu.py @@ -84,6 +84,7 @@ EXAMPLES = ''' commands: - show interface swp1 register: output + - name: Print Status Of Interface debug: var: output @@ -93,6 +94,7 @@ EXAMPLES = ''' commands: - show interface json register: output + - name: Print Interface Details debug: var: output["msg"] @@ -126,6 +128,7 @@ EXAMPLES = ''' commands: - show bgp summary json register: output + - name: Print BGP Status In JSON debug: var: output["msg"] diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py index 038ca4f6a3e..4f5f7d6cb96 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py @@ -62,6 +62,7 @@ EXAMPLES = ''' tower_job_launch: job_template: "My Job Template" register: job + - name: Wait for job max 120s tower_job_wait: job_id: job.id diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py index fc21a202cc5..c794454f178 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py @@ -46,6 +46,7 @@ EXAMPLES = ''' tower_job_launch: job_template: "My Job Template" register: job + - name: Wait for job max 120s tower_job_wait: job_id: job.id