Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
expect module: modules/commands/expect.py
OS / ENVIRONMENT
Running Python 3.5.3 on the targeted hosts (with pexpect==4.2.1) by modifiying the
When running a play with the expect module and Python 3 installed on the targeted hosts, it fails with the following error:
This issue is pretty similar to #21668. Both seems to be related to the fact python3 has not
STEPS TO REPRODUCE
--- - hosts: debian8 tasks: - name: Test Script expect: command: test.sh responses: enter one: 'one' enter two: 'two'
#!/usr/bin/env bash read -p "enter one: " one echo $one read -p "enter two: " two echo $two
Module executed by providing the given responses.