From 5b333c9665182e20c2dfbed64006ced12e897ccb Mon Sep 17 00:00:00 2001 From: J-F-Far Date: Mon, 3 Oct 2022 14:40:12 -0600 Subject: [PATCH] scenario guide doc changes (#78934) --- .../docsite/rst/scenario_guides/guide_aci.rst | 6 +++--- .../rst/scenario_guides/guide_azure.rst | 2 +- .../docsite/rst/scenario_guides/guide_gce.rst | 4 ++-- .../docsite/rst/scenario_guides/guide_rax.rst | 20 +++++++++---------- .../rst/scenario_guides/guide_scaleway.rst | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/docsite/rst/scenario_guides/guide_aci.rst b/docs/docsite/rst/scenario_guides/guide_aci.rst index 370ec13b0f3..e2e66138971 100644 --- a/docs/docsite/rst/scenario_guides/guide_aci.rst +++ b/docs/docsite/rst/scenario_guides/guide_aci.rst @@ -111,14 +111,14 @@ For this very reason, the modules need to run on the local Ansible controller (o Gathering facts ``````````````` -Because we run the modules on the Ansible controller gathering facts will not work. That is why when using these ACI modules it is mandatory to disable facts gathering. You can do this globally in your ``ansible.cfg`` or by adding ``gather_facts: no`` to every play. +Because we run the modules on the Ansible controller gathering facts will not work. That is why when using these ACI modules it is mandatory to disable facts gathering. You can do this globally in your ``ansible.cfg`` or by adding ``gather_facts: false`` to every play. .. code-block:: yaml :emphasize-lines: 3 - name: Another play in my playbook hosts: my-apic-1 - gather_facts: no + gather_facts: false tasks: - name: Create a tenant aci_tenant: @@ -235,7 +235,7 @@ By default, if an environment variable ``_proxy`` is set on the target HTTP redirects can redirect from HTTP to HTTPS so ensure that the proxy environment for both protocols is correctly configured. -If proxy support is not needed, but the system may have it configured nevertheless, use the parameter ``use_proxy: no`` to avoid accidental system proxy usage. +If proxy support is not needed, but the system may have it configured nevertheless, use the parameter ``use_proxy: false`` to avoid accidental system proxy usage. .. hint:: Selective proxy support using the ``no_proxy`` environment variable is also supported. diff --git a/docs/docsite/rst/scenario_guides/guide_azure.rst b/docs/docsite/rst/scenario_guides/guide_azure.rst index 548ee36cdb4..c60ec334259 100644 --- a/docs/docsite/rst/scenario_guides/guide_azure.rst +++ b/docs/docsite/rst/scenario_guides/guide_azure.rst @@ -460,7 +460,7 @@ Here is a simple playbook to exercise the Azure inventory script: - name: Test the inventory script hosts: azure connection: local - gather_facts: no + gather_facts: false tasks: - debug: msg: "{{ inventory_hostname }} has powerstate {{ powerstate }}" diff --git a/docs/docsite/rst/scenario_guides/guide_gce.rst b/docs/docsite/rst/scenario_guides/guide_gce.rst index 6d9ca65a1fc..54071040e2d 100644 --- a/docs/docsite/rst/scenario_guides/guide_gce.rst +++ b/docs/docsite/rst/scenario_guides/guide_gce.rst @@ -89,7 +89,7 @@ you can use the following configuration: - name: Create IP address hosts: localhost - gather_facts: no + gather_facts: false vars: service_account_file: /home/my_account.json @@ -168,7 +168,7 @@ rest. - name: Create an instance hosts: localhost - gather_facts: no + gather_facts: false vars: gcp_project: my-project gcp_cred_kind: serviceaccount diff --git a/docs/docsite/rst/scenario_guides/guide_rax.rst b/docs/docsite/rst/scenario_guides/guide_rax.rst index 1d9b380da8a..706115e3bbd 100644 --- a/docs/docsite/rst/scenario_guides/guide_rax.rst +++ b/docs/docsite/rst/scenario_guides/guide_rax.rst @@ -118,7 +118,7 @@ Here's what it would look like in a playbook, assuming the parameters were defin image: "{{ rax_image }}" count: "{{ rax_count }}" group: "{{ group }}" - wait: yes + wait: true register: rax delegate_to: localhost @@ -442,9 +442,9 @@ Create an isolated cloud network and build a server region: IAD state: present count: 5 - exact_count: yes + exact_count: true group: web - wait: yes + wait: true wait_timeout: 360 register: rax delegate_to: localhost @@ -473,7 +473,7 @@ Build a complete webserver environment with servers, custom networks and load ba type: PUBLIC timeout: 30 region: IAD - wait: yes + wait: true state: present meta: app: my-cool-app @@ -502,9 +502,9 @@ Build a complete webserver environment with servers, custom networks and load ba region: IAD state: present count: 5 - exact_count: yes + exact_count: true group: web - wait: yes + wait: true register: rax - name: Add servers to web host group @@ -525,7 +525,7 @@ Build a complete webserver environment with servers, custom networks and load ba port: 80 condition: enabled type: primary - wait: yes + wait: true region: IAD loop: "{{ rax.success }}" when: rax.action == 'create' @@ -583,9 +583,9 @@ Using a Control Machine region: DFW state: present count: 1 - exact_count: yes + exact_count: true group: web - wait: yes + wait: true register: rax - name: Add servers to in memory groups @@ -676,7 +676,7 @@ Using Ansible Pull - name: Wait for rackconnect automation to complete uri: url: "https://{{ rax_region.stdout|trim }}.api.rackconnect.rackspace.com/v1/automation_status?format=json" - return_content: yes + return_content: true register: automation_status when: bootstrap.stat.exists != True until: automation_status['automation_status']|default('') == 'DEPLOYED' diff --git a/docs/docsite/rst/scenario_guides/guide_scaleway.rst b/docs/docsite/rst/scenario_guides/guide_scaleway.rst index ede7d897892..ba399049e65 100644 --- a/docs/docsite/rst/scenario_guides/guide_scaleway.rst +++ b/docs/docsite/rst/scenario_guides/guide_scaleway.rst @@ -70,7 +70,7 @@ The ``ssh_pub_key`` parameter contains your ssh public key as a string. Here is - name: Test SSH key lifecycle on a Scaleway account hosts: localhost - gather_facts: no + gather_facts: false environment: SCW_API_KEY: "" @@ -120,7 +120,7 @@ Take a look at this short playbook to see a working example using ``scaleway_com - name: Test compute instance lifecycle on a Scaleway account hosts: localhost - gather_facts: no + gather_facts: false environment: SCW_API_KEY: ""