Use option to add back in gce_image hostvar

construct groups from this gce image hostvar
This commit is contained in:
AlanCoding
2019-03-28 09:24:17 -04:00
parent 9479b1b824
commit 180396b5df
2 changed files with 12 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ compose:
ansible_ssh_host: networkInterfaces[0].accessConfigs[0].natIP
gce_description: description if description else None
gce_id: id
gce_image: image
gce_machine_type: machineType
gce_metadata: metadata.get("items", []) | items2dict(key_name="key", value_name="value")
gce_name: name
@@ -36,9 +37,13 @@ keyed_groups:
prefix: tag
- key: status | lower
prefix: status
- key: image
prefix: ''
separator: ''
plugin: gcp_compute
projects:
- fooo
retrieve_image_info: true
service_account_file: {{ file_reference }}
use_contrib_script_compatible_sanitization: true
zones: