Ansible hangs while gathering facts

70 views
Skip to first unread message

Ashok Reddy

unread,
Jul 15, 2022, 2:18:26 AM7/15/22
to Ansible Project
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

Ashok Reddy

unread,
Jul 15, 2022, 4:25:07 AM7/15/22
to Ansible Project
Can some one help me?

Dick Visser

unread,
Jul 15, 2022, 5:40:12 AM7/15/22
to ansible...@googlegroups.com
Without any context, inventory, playbook, verbose output, no.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/58699cd2-2a80-4fa7-8d1d-963ad30c3e0cn%40googlegroups.com.
--
Sent from Gmail Mobile

Ashok Reddy

unread,
Jul 15, 2022, 6:00:29 AM7/15/22
to Ansible Project
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

Dick Visser

unread,
Jul 15, 2022, 7:29:00 AM7/15/22
to ansible...@googlegroups.com
You forgot the verbose output 

Reply all
Reply to author
Forward
0 new messages