# Weird ansible-playbook behaviour when trying to start rabbitmq-server 2.8.2

**URL:** <https://forum.ansible.com/t/weird-ansible-playbook-behaviour-when-trying-to-start-rabbitmq-server-2-8-2/11551>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [May 16, 2012, 10:39am UTC](https://forum.ansible.com/t/weird-ansible-playbook-behaviour-when-trying-to-start-rabbitmq-server-2-8-2/11551 "2012-05-16T10:39:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cosmin\_Luta](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Cosmin\_Luta](https://forum.ansible.com/u/Cosmin_Luta)\
**Post date:** [May 16, 2012, 10:39am UTC](https://forum.ansible.com/t/weird-ansible-playbook-behaviour-when-trying-to-start-rabbitmq-server-2-8-2/11551/1 "2012-05-16T10:39:50Z")

</div>

I have a weird bug here and I don’t really know what’s causing the issue, maybe some of you have any ideas.

I have an Ubuntu 12.04 amd64 machine with the latest rabbitmq-server package installed (version 2.8.2 , from [here](http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server_2.8.2-1_all.deb) ) and the rabbitmq-server process stopped ( /etc/init.d/rabbitmq-server stop after installing the package ).

I also have this playbook:

$ cat playbook

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 16, 2012, 11:33am UTC](https://forum.ansible.com/t/weird-ansible-playbook-behaviour-when-trying-to-start-rabbitmq-server-2-8-2/11551/2 "2012-05-16T11:33:08Z")

</div>

> I replaced the start action with:
> 
> - name: start  
> action: shell /usr/sbin/service rabbitmq-server start ; sleep 2m
> 
> and the rabbitmq-server process stays alive as long as the sleep is active;  
> as soon as it's done, the process gets killed and I really can't figure out  
> what's happening.

Ok, so the rabbitmq script sounds like it cares very much about the  
current directory, and when the current directory is gone, it blows  
up. Please take this up with whoever maintains the distro init  
script, because it's doing stupid things  
and it should not care anything about the directory you first ran  
/sbin/service in.

---

<div class="post-metadata">

**Author:** ![Cosmin\_Luta](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Cosmin\_Luta](https://forum.ansible.com/u/Cosmin_Luta)\
**Post date:** [May 17, 2012, 6:15am UTC](https://forum.ansible.com/t/weird-ansible-playbook-behaviour-when-trying-to-start-rabbitmq-server-2-8-2/11551/3 "2012-05-17T06:15:27Z")

</div>

I also asked [here](http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2012-May/020071.html) on rabbitmq’s discuss list. I’ll dig into this as soon as I have some spare time, I’m really curious what’s causing it.

Cosmin
