-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'ibmcloud_api_key' & 'ibmcloud_region' parameters for power instance creation #84
Comments
Hi @mosheabramov ! First of all the example README needs to be updated! The
They can be set directly as task parameters. For example:
If you want to store them in a separate vars.yml file (that can be re-used in other playbooks) you could do something like this:
list_pi_images.yml:
Since this requires writing the API key to file, you may want to consider using Ansible Vault to encrypt your |
Hi!
|
Hello,
I am trying to create a power instance using an Ansible playbook.
In the documentation I found below steps:
export IC_API_KEY=<YOUR_API_KEY_HERE>
Note: Modules also support the 'ibmcloud_api_key' parameter, but it is recommended to only use this when encrypting your API key value.
export IC_REGION=<REGION_NAME_HERE>
Note: Modules also support the 'ibmcloud_region' parameter.
My question is where exactly should I specify the 'ibmcloud_api_key' and 'ibmcloud_region' parameters (if I don’t want to set the environment variables)?
I tried to put them in the vars.yml file and in the ansible.cfg file but when I run the ansible-playbook list_pi_images.yml I got the following error:
TASK [ibm_pi_images_info] ********************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: ibmcloud_api_key"}
The text was updated successfully, but these errors were encountered: