# Ansible goes into a infinite sleep mode when it tries to start jboss server as root user

**URL:** <https://forum.ansible.com/t/ansible-goes-into-a-infinite-sleep-mode-when-it-tries-to-start-jboss-server-as-root-user/23088>\
**Category:** Ansible Project\
**Created:** [November 23, 2016, 7:46pm UTC](https://forum.ansible.com/t/ansible-goes-into-a-infinite-sleep-mode-when-it-tries-to-start-jboss-server-as-root-user/23088 "2016-11-23T19:46:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santhosh\_Chaitanya](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@Santhosh\_Chaitanya](https://forum.ansible.com/u/Santhosh_Chaitanya)\
**Post date:** [November 23, 2016, 7:46pm UTC](https://forum.ansible.com/t/ansible-goes-into-a-infinite-sleep-mode-when-it-tries-to-start-jboss-server-as-root-user/23088/1 "2016-11-23T19:46:10Z")

</div>

Hi all,

I am stuck with below strange issue that ansible halts or goes into sleep mode when trying to start jboss as a root user using ansible on redhat machine1

Accordingly below are the details of the scripts that are on redhat machine1

**ansible.cfg**

[defaults]

host\_key\_checking = False  
hostfile = inventory  
deprecation\_warnings = False  
[privilege\_escalation]  
become = yes  
become\_user = root  
become\_method = sudo

**Inventory file**

host1 ansible\_ssh\_host=11.21.34.124

[webservers]  
host1

[datacenter:children]  
webservers

[datacenter:vars]  
ansible\_ssh\_user=root  
ansible\_ssh\_pass=password

**/roles/webserver/tasks/main.yaml**
