From 26de6c93882b4908b26d879f913716f9d5683e20 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 4 Apr 2019 13:02:11 -0400 Subject: [PATCH] optionally get service account file path from env var (#54407) --- plugins/inventory/gcp_compute.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/inventory/gcp_compute.py b/plugins/inventory/gcp_compute.py index 59809ad..07fc378 100644 --- a/plugins/inventory/gcp_compute.py +++ b/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