Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix var naming #55796

Merged
merged 2 commits into from
May 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/docsite/rst/scenario_guides/guide_gce.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ used, but you may experience issues trying to use them together.

While the community GCP modules are not going away, Google is investing effort
into the new "gcp_*" modules. Google is committed to ensuring the Ansible
community has a great experience with GCP and therefore recommends adopting
community has a great experience with GCP and therefore recommends adopting
these new modules if possible.


Expand All @@ -42,7 +42,7 @@ The Google Cloud Platform (GCP) modules require both the ``requests`` and the

$ pip install requests google-auth

Alternatively for RHEL / CentOS, the ``python-requests`` package is also
Alternatively for RHEL / CentOS, the ``python-requests`` package is also
available to satisfy ``requests`` libraries.

.. code-block:: bash
Expand Down Expand Up @@ -234,10 +234,10 @@ rest.
register: instance

- name: Wait for SSH to come up
wait_for: host={{ instance.address }} port=22 delay=10 timeout=60
wait_for: host={{ address.address }} port=22 delay=10 timeout=60

- name: Add host to groupname
add_host: hostname={{ instance.address }} groupname=new_instances
add_host: hostname={{ address.address }} groupname=new_instances


- name: Manage new instances
Expand Down Expand Up @@ -268,7 +268,7 @@ module (and more!). Below is a mapping of ``gce`` fields over to
``gcp_compute_instance`` fields.

============================ ========================================== ======================
gce.py gcp_compute_instance.py Notes
gce.py gcp_compute_instance.py Notes
============================ ========================================== ======================
state state/status State on gce has multiple values: "present", "absent", "stopped", "started", "terminated". State on gcp_compute_instance is used to describe if the instance exists (present) or does not (absent). Status is used to describe if the instance is "started", "stopped" or "terminated".
image disks[].initialize_params.source_image You'll need to create a single disk using the disks[] parameter and set it to be the boot disk (disks[].boot = true)
Expand Down