mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 12:20:27 -07:00
Add service_account_contents parameter to allign with the modules (#57848)
This commit is contained in:
parent
80503bb976
commit
85cdf91048
1 changed files with 9 additions and 0 deletions
|
@ -67,6 +67,14 @@ DOCUMENTATION = '''
|
||||||
version_added: "2.8"
|
version_added: "2.8"
|
||||||
- name: GCE_CREDENTIALS_FILE_PATH
|
- name: GCE_CREDENTIALS_FILE_PATH
|
||||||
version_added: "2.8"
|
version_added: "2.8"
|
||||||
|
service_account_contents:
|
||||||
|
description:
|
||||||
|
- A string representing the contents of a Service Account JSON file. This should not be passed in as a dictionary,
|
||||||
|
but a string that has the exact contents of a service account json file (valid JSON).
|
||||||
|
type: string
|
||||||
|
env:
|
||||||
|
- name: GCP_SERVICE_ACCOUNT_CONTENTS
|
||||||
|
version_added: "2.8"
|
||||||
service_account_email:
|
service_account_email:
|
||||||
description:
|
description:
|
||||||
- An optional service account email address if machineaccount is selected
|
- An optional service account email address if machineaccount is selected
|
||||||
|
@ -448,6 +456,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||||
'zones': self.get_option('zones'),
|
'zones': self.get_option('zones'),
|
||||||
'auth_kind': self.get_option('auth_kind'),
|
'auth_kind': self.get_option('auth_kind'),
|
||||||
'service_account_file': self.get_option('service_account_file'),
|
'service_account_file': self.get_option('service_account_file'),
|
||||||
|
'service_account_contents': self.get_option('service_account_contents'),
|
||||||
'service_account_email': self.get_option('service_account_email'),
|
'service_account_email': self.get_option('service_account_email'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue