From aa3f010e629ea88a65aefba8f4c8a530458af341 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 4 Apr 2019 13:02:11 -0400 Subject: optionally get service account file path from env var (#54407) --- lib/ansible/plugins/inventory/gcp_compute.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3