Linux df6018271b3d 5.10.76-linuxkit #1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce
Should be available at https://docs.ansible.com/ansible/latest/collections/google/cloud/gcp_compute_instance_template_module.html#ansible-collections-google-cloud-gcp-compute-instance-template-module
shielded_instance_config:
enable_integrity_monitoring: yes
enable_secure_boot: yes
enable_vtpm: yes
Expected Results
I expected the shielded_instance_config property is available in gcp_compute_instance_template module so that instance creation happens but as it's not present in the module so getting an error.
Summary
We have enabled the shielded VM policy enabled at the org level, so whenever we want to create any VM, we have to enable all the 3 options under shielded VM. Now, When I create Ansible code for google.cloud.gcp_compute_instance_template module, seems these 3 options aren't present there in properties: https://docs.ansible.com/ansible/latest/collections/google/cloud/gcp_compute_instance_template_module.html#ansible-collections-google-cloud-gcp-compute-instance-template-module
Like creating a GCP instance module, https://docs.ansible.com/ansible/latest/collections/google/cloud/gcp_compute_instance_module.html we need all these 3 options in gcp_compute_instance_template module.
And due to this, I'm getting an error that instance creation failed, Secure boot is not enabled in the shielded_instance_config field.
Error:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (google.cloud.gcp_compute_instance_template) module: shielded_instance_config. Supported parameters include: service_account_email, description, scopes, project, service_account_contents, service_account_file, state, env_type, properties, name, auth_kind."}
Issue Type
Bug Report
Component Name
google.cloud.gcp_compute_instance_template module error
Ansible Version
Configuration
OS / Environment
Linux df6018271b3d 5.10.76-linuxkit #1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce
Expected Results
I expected the shielded_instance_config property is available in gcp_compute_instance_template module so that instance creation happens but as it's not present in the module so getting an error.
Actual Results
Code of Conduct