Ansible 2.5.1 APC Battery Backup Playbook to Reboot Outlet Group

I’ve been trying my hand with a playbook that would connect to a APC UPS and reboot a specific outlet group. The command is very simple in order to get the outlet group to reboot but I’m having issues with submitting the command to the device. My SSH connection seems to go through fine but after looking at the UPS device’s logs there’s a failure at the SCP.

I was wondering if anyone has had experience with APC hardware and ansible. I’ve tried using Telnet instead of SSH and different combinations of commands in order to get it to work but everything gives me an error of:
“Failed to Connect to the Host via SSH: Shared connection to closed”

Looking at the logs of the device, the SSH connection worked and connected fine but SCP Failing causes the connection to close.

If anyone has used APC Battery Backups with ansible let me know your experience and what helped you run a playbook to the device.