# Ansible hangs while gathering facts

**URL:** <https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853>\
**Category:** Ansible Project\
**Created:** [July 15, 2022, 6:18am UTC](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853 "2022-07-15T06:18:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [July 15, 2022, 6:18am UTC](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853/1 "2022-07-15T06:18:25Z")

</div>

Hi Team,

got the following error:

PLAY [Common setup for all servers] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

After this, Ansible hangs

Aborted by Mareddy, Ashokreddy  
Sending interrupt signal to process

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [July 15, 2022, 8:25am UTC](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853/2 "2022-07-15T08:25:07Z")

</div>

Can some one help me?

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [July 15, 2022, 9:39am UTC](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853/3 "2022-07-15T09:39:46Z")

</div>

Without any context, inventory, playbook, verbose output, no.

---

<div class="post-metadata">

**Author:** ![Ashok-2017](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ashok-2017/32/659_2.png) [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Post date:** [July 15, 2022, 10:00am UTC](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853/4 "2022-07-15T10:00:29Z")

</div>

Inventory:

dmsdb19c ansible\_python\_interpreter=/usr/bin/python3 ansible\_user=cloud-user  
dms.tt040dms2 ansible\_python\_interpreter=/usr/bin/python3 ansible\_user=cloud-user  
mpcc.tt040dms2. ansible\_python\_interpreter=/usr/bin/python3 ansible\_user=cloud-user  
mssc.tt040dms2. ansible\_python\_interpreter=/usr/bin/python3 ansible\_user=cloud-user  
webapp.tt040dms2. ansible\_python\_interpreter=/usr/bin/python3 ansible\_user=cloud-user

Playbook:

- hosts: deploy  
become: true  
become\_method: sudo  
#become\_user: root  
ignore\_errors: yes  
#any\_errors\_fatal: true  
tasks:
- name: Gather facts for services  
service\_facts:  
tags:
- info
- name: Stop Webapp services  
service:  
name: jbosswebapp  
state: stopped

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [July 15, 2022, 11:28am UTC](https://forum.ansible.com/t/ansible-hangs-while-gathering-facts/36853/5 "2022-07-15T11:28:37Z")

</div>

You forgot the verbose output
