diff options
author | Philipp Schmiedel <philipp.schmiedel@gmail.com> | 2020-06-16 20:15:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 20:15:11 +0200 |
commit | 5f30f4e5243aa7b1bdf8357a8df147c4db84edfa (patch) | |
tree | f89053f2c60ce2f4f4c96ab3f1636583a68c90e6 | |
parent | Add pyparsing constraint to ansible-test. (diff) | |
download | ansible-5f30f4e5243aa7b1bdf8357a8df147c4db84edfa.tar.xz ansible-5f30f4e5243aa7b1bdf8357a8df147c4db84edfa.zip |
Use default network in Google Cloud Platform Guide (#68846)
* Update guide_gce.rst
The given example is not working as a SSH connection is not possible because of #59573. Instead, in this tutorial the default network should be used which allows SSH connections in most cases.
Co-authored-by: Sandra McCann <samccann@redhat.com>
-rw-r--r-- | docs/docsite/rst/scenario_guides/guide_gce.rst | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/docs/docsite/rst/scenario_guides/guide_gce.rst b/docs/docsite/rst/scenario_guides/guide_gce.rst index 82eb439586..6d9ca65a1f 100644 --- a/docs/docsite/rst/scenario_guides/guide_gce.rst +++ b/docs/docsite/rst/scenario_guides/guide_gce.rst @@ -157,11 +157,11 @@ Create an instance The full range of GCP modules provide the ability to create a wide variety of GCP resources with the full support of the entire GCP API. -The following playbook creates a GCE Instance. This instance relies on a GCP -network and a Disk. By creating the Disk and Network separately, we can give as -much detail as necessary about how we want the disk and network formatted. By -registering a Disk/Network to a variable, we can simply insert the variable -into the instance task. The gcp_compute_instance module will figure out the +The following playbook creates a GCE Instance. This instance relies on other GCP +resources like Disk. By creating other resources separately, we can give as +much detail as necessary about how we want to configure the other resources, for example +formatting of the Disk. By registering it to a variable, we can simply insert the +variable into the instance task. The gcp_compute_instance module will figure out the rest. .. code-block:: yaml @@ -190,16 +190,6 @@ rest. - https://www.googleapis.com/auth/compute state: present register: disk - - name: create a network - gcp_compute_network: - name: 'network-instance' - project: "{{ gcp_project }}" - auth_kind: "{{ gcp_cred_kind }}" - service_account_file: "{{ gcp_cred_file }}" - scopes: - - https://www.googleapis.com/auth/compute - state: present - register: network - name: create a address gcp_compute_address: name: 'address-instance' @@ -221,7 +211,7 @@ rest. boot: true source: "{{ disk }}" network_interfaces: - - network: "{{ network }}" + - network: null # use default access_configs: - name: 'External NAT' nat_ip: "{{ address }}" |