You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TASK [ibm_is_instance_profiles_info] ****************************************************************************************************************************************
task path: /Users/ryan/Desktop/CurrentProjects/IBM-Cloud-Ansible-/list-profiles.yml:11
fatal: [localhost]: FAILED! => {"changed": false, "msg": "", "rc": 1, "resource": {"_name": "ansible_20220131-125040", "_type": "ibm_is_instance_profiles", "target": "ibm_is_instance_profiles.ansible_20220131-125040"}, "stderr": "\nError: Unsupported argument\n\n on ibm_is_instance_profiles_ansible_20220131-125040.tf line 2, in data \"ibm_is_instance_profiles\" \"ansible_20220131-125040\":\n 2: ibmcloud_api_key = \"********\"\n\nAn argument named \"ibmcloud_api_key\" is not expected here.\n\n\nError: Unsupported argument\n\n on ibm_is_instance_profiles_ansible_20220131-125040.tf line 3, in data \"ibm_is_instance_profiles\" \"ansible_20220131-125040\":\n 3: generation = 2\n\nAn argument named \"generation\" is not expected here.\n\n\nError: Unsupported argument\n\n on ibm_is_instance_profiles_ansible_20220131-125040.tf line 4, in data \"ibm_is_instance_profiles\" \"ansible_20220131-125040\":\n 4: region = \"us-south\"\n\nAn argument named \"region\" is not expected here.\n\n", "stderr_lines": ["", "Error: Unsupported argument", "", " on ibm_is_instance_profiles_ansible_20220131-125040.tf line 2, in data \"ibm_is_instance_profiles\" \"ansible_20220131-125040\":", " 2: ibmcloud_api_key = \"********\"", "", "An argument named \"ibmcloud_api_key\" is not expected here.", "", "", "Error: Unsupported argument", "", " on ibm_is_instance_profiles_ansible_20220131-125040.tf line 3, in data \"ibm_is_instance_profiles\" \"ansible_20220131-125040\":", " 3: generation = 2", "", "An argument named \"generation\" is not expected here.", "", "", "Error: Unsupported argument", "", " on ibm_is_instance_profiles_ansible_20220131-125040.tf line 4, in data \"ibm_is_instance_profiles\" \"ansible_20220131-125040\":", " 4: region = \"us-south\"", "", "An argument named \"region\" is not expected here.", ""], "stdout": "\nWarning: Argument is deprecated\n\nThe generation field is deprecated and will be removed after couple of\nreleases\n\n", "stdout_lines": ["", "Warning: Argument is deprecated", "", "The generation field is deprecated and will be removed after couple of", "releases", ""]}
I was able to resolve this by updating the accompanying python file (plugins/modules/ibm_is_instance_profiles_info.py) and adding in the name and visibility options to TL_ALL_PARAMETERS
I am running in to an issue when trying to list out the available Instance profiles using the Ansible Collection:
Ansible Playbook
Error
System Info
The text was updated successfully, but these errors were encountered: