summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2019-04-04 19:02:11 +0200
committerBrian Coca <bcoca@users.noreply.github.com>2019-04-04 19:02:11 +0200
commitaa3f010e629ea88a65aefba8f4c8a530458af341 (patch)
treedb00ef38a42f3e7361bc7c3d878539b42d1fae96
parentShortens Scenario Guides, incorporates vmware guide (#54554) (diff)
downloadansible-aa3f010e629ea88a65aefba8f4c8a530458af341.tar.xz
ansible-aa3f010e629ea88a65aefba8f4c8a530458af341.zip
optionally get service account file path from env var (#54407)
-rw-r--r--lib/ansible/plugins/inventory/gcp_compute.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ansible/plugins/inventory/gcp_compute.py b/lib/ansible/plugins/inventory/gcp_compute.py
index 59809ad6a1..07fc378e68 100644
--- a/lib/ansible/plugins/inventory/gcp_compute.py
+++ b/lib/ansible/plugins/inventory/gcp_compute.py
@@ -57,6 +57,9 @@ DOCUMENTATION = '''
- The path of a Service Account JSON file if serviceaccount is selected as type.
required: True
type: path
+ env:
+ - name: GCE_CREDENTIALS_FILE_PATH
+ version_added: "2.8"
service_account_email:
description:
- An optional service account email address if machineaccount is selected