disconnect action does not work
Summary
When using ssh:disconnect action on servers where ansible_host
use hostvars object, this action does nothing.
ssh:disconnect action generates control path hash, checks if this file exists and then removes it. As the generated control path hash is invalid, checking if it exists fails. Thus, file will be not removed.
Steps to reproduce
Execute ssh:disconnect action on server with ansible_host
variable defined. This definition should contain hostavrs object reference.
Expected behavior
SSH control path file is removed.
Actual behavior
SSH control path file still exists.
Relevant logs and/or screenshots
Nothing here.
Possible fixes
We cannot use hostvars in ssh:disconnect action.