# deployment failing in ansible

**URL:** <https://forum.ansible.com/t/deployment-failing-in-ansible/32262>\
**Category:** Ansible Project\
**Created:** [February 18, 2020, 3:06pm UTC](https://forum.ansible.com/t/deployment-failing-in-ansible/32262 "2020-02-18T15:06:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishu\_Sinha](https://avatars.discourse-cdn.com/v4/letter/n/8baadc/32.png) [@Nishu\_Sinha](https://forum.ansible.com/u/Nishu_Sinha)\
**Post date:** [February 18, 2020, 3:06pm UTC](https://forum.ansible.com/t/deployment-failing-in-ansible/32262/1 "2020-02-18T15:06:20Z")

</div>

> Hi  
>   
> I am getting the below error when i am trying to deploy the application NCS via Jenkins using ansible scripts |
> 
> - |

TASK [ncs-ansible : Run install.sh] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /automation/roles/ncs-ansible/tasks/7-app.yml:67  
fatal: [ncs]: FAILED! =\> {“changed”: true, “cmd”: “echo ‘yes’ | /opt/cts/nbms/install.sh Tomee”, “delta”: “0:00:00.376643”, “end”: “2020-02-18 13:28:51.645130”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-02-18 13:28:51.268487”, “stderr”: “Error: Unable to access jarfile @INSTALL\_JAR@\nError: Unable to access jarfile @INSTALL\_JAR@”, “stderr\_lines”: [“Error: Unable to access jarfile @INSTALL\_JAR@”, “Error: Unable to access jarfile @INSTALL\_JAR@”], “stdout”: “\n ------------- Settings -------------\n JAVA\_HOME=/opt/cts/jdk1.8.0\_131\n ------------------------------------\n\n tokenCopy installer/installer.sh to /opt/cts/nbms/installer.sh”, “stdout\_lines”: [“”, " ------------- Settings -------------“, " JAVA\_HOME=/opt/cts/jdk1.8.0\_131”, " ------------------------------------“, “”, " tokenCopy installer/installer.sh to /opt/cts/nbms/installer.sh”]}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ncs : ok=55 changed=14 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [February 18, 2020, 3:15pm UTC](https://forum.ansible.com/t/deployment-failing-in-ansible/32262/2 "2020-02-18T15:15:09Z")

</div>

> Hi
> 
> I am getting the below error when i am trying to deploy the application NCS via Jenkins using ansible scripts

This is really off topic here due to missing information (playbook, task, ...).

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Nishu\_Sinha](https://avatars.discourse-cdn.com/v4/letter/n/8baadc/32.png) [@Nishu\_Sinha](https://forum.ansible.com/u/Nishu_Sinha)\
**Post date:** [February 18, 2020, 3:17pm UTC](https://forum.ansible.com/t/deployment-failing-in-ansible/32262/3 "2020-02-18T15:17:04Z")

</div>

I have attached the application zip file with tasks and templates

> **(attachments)**
>
> [nifi-ansible.7z](https://forum.ansible.com/uploads/short-url/k23IIM8DedNXFzfC8IYu6mGthoQ.7z) (57.9 KB)

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 18, 2020, 3:56pm UTC](https://forum.ansible.com/t/deployment-failing-in-ansible/32262/4 "2020-02-18T15:56:15Z")

</div>

Don’t expect people to do all the work of downloading and unpacking random mystery/binary files.

Instead you are expected to provide the playbook/task etc in the easiest way possible for us to understand the problem.

So, please tell clearly:

- What you are trying to achieve.

- How you are doing this.

- What problems you encounter.

- Which command did you run, and what output did you get from that (copied as text, not as images/attachments/screenshots)

- What the relevant tasks/playbooks/code/variables look like
