TASK [cisco.nac_dc_vxlan.create : Manage Devices Entry Point] ***************************************************************************************
ok: [marehler_vnd2] => {
"msg": [
"----------------------------------------------------------------",
"+ Manage Devices Fabric VXLAN-FABRIC-2",
"----------------------------------------------------------------"
]
}
TASK [cisco.nac_dc_vxlan.create : Manage Devices Discovery] *****************************************************************************************
included: /Users/marehler/nac-vxlan/ansible-dc-vxlan-example/collections/ansible_collections/cisco/nac_dc_vxlan/roles/dtc/create/tasks/devices_discovery.yml for marehler_vnd2
TASK [cisco.nac_dc_vxlan.create : Add NDFC Fabric Devices VXLAN-FABRIC-2] ***************************************************************************
[WARNING]: Managing fabric switches can take a while. Please be patient...
fatal: [marehler_vnd2]: FAILED! => {"changed": false, "msg": "Invalid parameters in playbook: password:******** : The string exceeds the allowed range of max 32 char\npassword:******** : The string exceeds the allowed range of max 32 char"}
I've verified the environment variable ndfc_device_password is actually set. If I enter a password directly into the connection.yaml, it works fine. Besides, ansible_password: "{{ lookup('env', 'ansible_password') }}" works fine.
The task "Retrieve NDFC Device Username and Password from Group Vars and update inv_config" fails to lookup and insert the NDFC password variable.
connection.yaml:
Instead the lookup command is inserted as the password:
Depending tasks fail:
I've verified the environment variable ndfc_device_password is actually set. If I enter a password directly into the connection.yaml, it works fine. Besides, ansible_password: "{{ lookup('env', 'ansible_password') }}" works fine.