# Except Module in Ansible

**URL:** <https://forum.ansible.com/t/except-module-in-ansible/29786>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [February 27, 2019, 11:17am UTC](https://forum.ansible.com/t/except-module-in-ansible/29786 "2019-02-27T11:17:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@Deepak\_Sharma1](https://forum.ansible.com/u/Deepak_Sharma1)\
**Post date:** [February 27, 2019, 11:17am UTC](https://forum.ansible.com/t/except-module-in-ansible/29786/1 "2019-02-27T11:17:13Z")

</div>

Hi All,

I am using except module to install one TIBCO products ,

- name: Start Streambase installation  
expect:  
echo: yes  
chdir: /opt/tibco//{{ env }}/install  
command: ./TIB\_sb-cep\_{{ tib\_streambase\_version }}\_linux\_x86\_64.archive-bin  
responses:  
(._)Extract files to which directory (._): /opt/tibco/{{ env }}/streambase/sb-cep/10.3  
(._)Do you accept this license (._): “yes”

But we are getting below error .

(1, ‘\r\n{“msg”: “The pexpect python module is required”, “failed”: true, “exception”: “WARNING: The below traceback may _not_ be related to the actual failure.\n File \”/tmp/ansible\_expect\_payload\_vjbqxk/ **main**.py\“, line 98, in \n import pexpect\n”, “invocation”: {“module\_args”: {“chdir”: “/opt/tibco//SIT/install”, “responses”: {“(._)Do you accept this license (._)”: “yes”, “(._)Extract files to which directory (._)”: “/opt/tibco/SIT/streambase/sb-cep/10.3”}, “removes”: null, “echo”: true, “creates”: null, “command”: “./TIB\_sb-cep\_10.3.0\_linux\_x86\_64.archive-bin”, “timeout”: 30}}}\r\n’, 'OpenSSH\_7.2p2 Ubuntu-4ubuntu2.7, OpenSSL 1.0.2g 1 Mar 2016\r\ndebug1: Reading configuration data /opt/jenkins/.ssh/config\r\ndebug1: /opt/jenkins/.ssh/config line 1: Applying options for \*\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 19: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 8282\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1

we have also added pexpect python module, but issue still the same .

Kindly guide us and your help is appreciate .

Regards,  
Deepak

---

<div class="post-metadata">

**Author:** ![Deepak\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@Deepak\_Sharma1](https://forum.ansible.com/u/Deepak_Sharma1)\
**Post date:** [February 27, 2019, 1:43pm UTC](https://forum.ansible.com/t/except-module-in-ansible/29786/2 "2019-02-27T13:43:34Z")

</div>

> I am using expect module to install one TIBCO products ,

---

<div class="post-metadata">

**Author:** ![hugonz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hugonz/32/503_2.png) [@hugonz](https://forum.ansible.com/u/hugonz)\
**Post date:** [February 27, 2019, 2:36pm UTC](https://forum.ansible.com/t/except-module-in-ansible/29786/3 "2019-02-27T14:36:33Z")

</div>

Hello Deepak,

---

<div class="post-metadata">

**Author:** ![Deepak\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@Deepak\_Sharma1](https://forum.ansible.com/u/Deepak_Sharma1)\
**Post date:** [February 28, 2019, 9:40am UTC](https://forum.ansible.com/t/except-module-in-ansible/29786/4 "2019-02-28T09:40:07Z")

</div>

Hi Hugo,

We are using conda forge, and pexpect is already installed , but no clue when it will finish .

conda-forge::pexpect-4.6.0-py27\_1000

Regards,  
Deepak

---

<div class="post-metadata">

**Author:** ![Deepak\_Sharma1](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@Deepak\_Sharma1](https://forum.ansible.com/u/Deepak_Sharma1)\
**Post date:** [February 28, 2019, 9:54am UTC](https://forum.ansible.com/t/except-module-in-ansible/29786/5 "2019-02-28T09:54:53Z")

</div>

Please ignore previous mail

Hi Hugo,

We are using conda forge, and pexpect is already installed , we are using Jenkins pipeline to configure by using below environment file .

channels:

- conda-forge
- defaults  
dependencies:
- python=2.7.15
- ansible=2.7.1

conda-forge::pexpect-4.6.0-py27\_1000

Regards,  
Deepak

---

<div class="post-metadata">

**Author:** ![Pshem\_Kowalczyk](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Post date:** [March 3, 2019, 10:40pm UTC](https://forum.ansible.com/t/except-module-in-ansible/29786/6 "2019-03-03T22:40:09Z")

</div>

Hi,

Have you installed the pyexpect on the remote machine against which you’re executing the playbook?

kind regards  
Pshem
