cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2043
Views
2
Helpful
15
Replies

cisco aci automation using ansible

vijays19
Level 1
Level 1

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

 

15 Replies 15

Marcel Zehnder
Spotlight
Spotlight

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