scenario guide doc changes (#78934)

pull/79008/head
J-F-Far 3 years ago committed by GitHub
parent 5137cb16e9
commit 5b333c9665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 ``<protocol>_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.

@ -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 }}"

@ -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

@ -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'

@ -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: ""

Loading…
Cancel
Save