wrong task state with network_cli (failed/unreachable)

Hello! I’m evaluating ansible to configure network switches and observed that the task result is not correct if the switch is not reachable. Using network_cli it’s always ‘failed’ where I’d expect 'unreachable". A minimal working example using localhost:

host.yml:

all:
hosts:
local:
ansible_host: 127.0.0.1

playbook.yml:

I believe you can’t use the loopback address as the destination. Have you tried the private IP?