Ansible Hangs at the end of a Host list

8 views
Skip to first unread message

eyal gershon

unread,
Feb 20, 2017, 11:48:16 AM2/20/17
to Ansible Project
Hey Everyone,

I am running ansible  version 1.8.4.

Running the same task on multiple Hosts list - 
---
 
- hosts: all
    gather_facts
: no
    tasks
:
   
- name: Stopping OSSEC
      service
:
        name
: ossec-hids
        state
: stopped


 
- hosts: all
    gather_facts
: no
    tasks
:
   
- name: Deleteing File
      shell
:  rm -f /var/ossec/queue/rids/*

From time to time the first task hangs on the last server in the Host list (the host list is dynamic and is being generated by a different Playbook) and does not continue to the next task.
Is there a way to debug this?
Why does it hangs from time to time?
Reply all
Reply to author
Forward
0 new messages