08-29-2023 12:59 AM
Hi All,
Am new to cisco aci automation using ansible. i am using windows 11 and installed WSL (ubuntu). then, then installed python and ansible. I got an error when i execute the below command . Please help on how to fix this issue. how can we access sandbox from virtual VM machine.
home@IBM-PF35CWE8:~/aci_ansible_learning_labs_code_samples/intro_module$ ansible-playbook -i inventory 01_aci_tenant_pb.yml
What would you like to name your Tenant?: vs_1008
PLAY [ENSURE APPLICATION CONFIGURATION EXISTS] *************************************************************************
TASK [ENSURE APPLICATIONS TENANT EXISTS] *******************************************************************************
fatal: [sandboxapicdc.cisco.com]: FAILED! => {"changed": false, "error": {"code": "400", "text": "Failed to parse login request"}, "msg": "Authentication failed: 400 Failed to parse login request"}
PLAY RECAP *************************************************************************************************************
sandboxapicdc.cisco.com : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
09-12-2023 04:30 AM
Just to add it to the end of the list:
Collection 2.7.0 is affected by a bug: You need to explicit set use_ssl to true. For example:
- name: Create tenant
aci_tenant:
host: xyz.apic.com
username: admin
password: supersecret
validate_certs: false
state:present
use_ssl: true
The default value for use_ssl was removed in version 2.7.0
https://github.com/CiscoDevNet/ansible-aci/blob/v2.6.0/plugins/module_utils/aci.py#L126
https://github.com/CiscoDevNet/ansible-aci/blob/v2.7.0/plugins/module_utils/aci.py#L134
An issue/PR is already open: https://github.com/CiscoDevNet/ansible-aci/issues/466
HTH
Marcel
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide