Hello everyone!
Just this week i noticed aos_switch galaxy collection was released, and so i embarked on a journey to migrate from aruba-ansible-modules to collection, as it simplifies installation greatly both for new employees and AWX deployment
I have installed collection by using requirements.yml file. Everything seems to be installed just fine, as ansible-doc can find module documentation without a problem.
After adapting tasks (every module call needed to be prepended with arubanetworks.aos_switch) and host variables (from just "arubaoss" to "arubanetworks.aos_switch.arubaoss", i tried to run the play.
It worked for both arubaoss_command and arubaoss_config (i'm changing the ansible_connection in those tasks, as described in docu - the default is local), but it fails miserably on arubaoss_dns or arubaoss_syslog.
The weirdest thing is, it looks like neither of ansible_user, ansible_password, ansible_hostname are propagated to REST API modules, as i'm getting this error:
fatal: [proper FQDN here]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"api_version": "None",
"dns_config_mode": "DCM_MANUAL",
"dns_domain_names": "",
"dns_domain_names_2": "",
"dns_domain_names_3": "",
"dns_domain_names_4": "",
"dns_domain_names_5": "",
"host": null,
"password": null,
"port": null,
"provider": null,
"server_1": "proper DNS1 IP here",
"server_2": "proper DNS2 IP here",
"server_3": "proper DNS3 IP here",
"server_4": "proper DNS4 IP here",
"ssh_keyfile": null,
"timeout": null,
"use_ssl": null,
"username": null,
"validate_certs": false,
"version_1": "IAV_IP_V4",
"version_2": "IAV_IP_V4",
"version_3": "IAV_IP_V4",
"version_4": "IAV_IP_V4"
}
},
"status": -1,
"url": "http://None:80/rest/v6.0/login-sessions"
}
I don't know what i'm doing wrong here, it looks like only REST API calls have issues, but i have no idea how to debug it further. Is it possible there's a problem within the collection?