# expect module works but hangs

**URL:** <https://forum.ansible.com/t/expect-module-works-but-hangs/27116>\
**Category:** Ansible Project\
**Created:** [March 26, 2018, 1:57pm UTC](https://forum.ansible.com/t/expect-module-works-but-hangs/27116 "2018-03-26T13:57:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DOkuwa](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dokuwa/32/1471_2.png) [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Post date:** [March 26, 2018, 1:57pm UTC](https://forum.ansible.com/t/expect-module-works-but-hangs/27116/1 "2018-03-26T13:57:01Z")

</div>

Other recipients:

Hello, I have a playbook here which seems to do what it needs to do but hangs It actually copies the file using ftp but cannot find a way to exit out of the program — - name: backup of juniper using expect hosts: juniper connection: local

Hello,

I have a playbook here which seems to do what it needs to do but hangs  
It actually copies the file using ftp but cannot find a way to exit out of the program
