# Semaphore fails ansible-playbook succeeds

**URL:** <https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089>\
**Category:** Get Help\
**Tags:** semaphore, ssh, playbook, ubuntu\
**Created:** [February 27, 2024, 2:07pm UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089 "2024-02-27T14:07:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tubbs](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tubbs](https://forum.ansible.com/u/tubbs)\
**Post date:** [February 27, 2024, 2:07pm UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089/1 "2024-02-27T14:07:55Z")

</div>

When I run my playbook ansible connects properly to the remote machine and executes all commands just fine.

When I run the same playbook from the semaphore UI I get → ssh connection error.

```auto

```

It’s obviously an ssh error but I dont understand why since it works without semaphore.

Could someone pls point me in the right direction?

Thanks

====  
The reason for the error was that the remote machine had the wrong ssh key in the authorized\_hosts file. When I log in to the Master machine I use ssh agent forwarding so the first time I connected to the slave-machine the wrong key was automatically passed to the authorized\_hosts.

---

<div class="post-metadata">

**Author:** ![Dustin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dustin/32/2573_2.png) [@Dustin](https://forum.ansible.com/u/Dustin)\
**Post date:** [February 27, 2024, 2:50pm UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089/2 "2024-02-27T14:50:29Z")

</div>

When you run the playbook and it succeeds, are you running it from the same server that is hosting the Semaphore installation?

---

<div class="post-metadata">

**Author:** ![jrglynn2](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jrglynn2](https://forum.ansible.com/u/jrglynn2)\
**Post date:** [February 27, 2024, 8:56pm UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089/3 "2024-02-27T20:56:47Z")

</div>

I don’t believe Semaphore is supported here, I think it is a whole separate entity.

You could try searching / posting to their issues tab in GitHub ([Issues · ansible-semaphore/semaphore · GitHub](https://github.com/ansible-semaphore/semaphore/issues)), but I don’t think anyone actively supports it anymore - at least that’s why I abandoned using it.

Good luck!

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [February 27, 2024, 11:26pm UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089/4 "2024-02-27T23:26:03Z")

</div>

> [@jrglynn2](#):
>
> I don’t think anyone actively supports it anymore

There seems to be some recent activity, and from several people. It may be less moribund than you think. (I’ve never used it. In fact I don’t recall hearing about it before now. Looks like a “personal AWX” from a _very_ brief glance.)

---

<div class="post-metadata">

**Author:** ![jrglynn2](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jrglynn2](https://forum.ansible.com/u/jrglynn2)\
**Post date:** [February 27, 2024, 11:41pm UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089/5 "2024-02-27T23:41:20Z")

</div>

Oh, interesting. It is basically a simpler AWX, with a far better GUI (in my opinion).

For the OP - in matrix/irc a while back, people recommended Rundeck as an alternative to Semaphore. I haven’t tried it.

I ended up using some simple buttons on an existing in-house web app to do what I needed.

---

<div class="post-metadata">

**Author:** ![tubbs](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tubbs](https://forum.ansible.com/u/tubbs)\
**Post date:** [February 29, 2024, 8:52am UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089/6 "2024-02-29T08:52:57Z")

</div>

Yes, but lt’s resolved now see my added info above and thanks for answering.

---

<div class="post-metadata">

**Author:** ![tubbs](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tubbs](https://forum.ansible.com/u/tubbs)\
**Post date:** [February 29, 2024, 8:55am UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089/7 "2024-02-29T08:55:09Z")

</div>

It is working fine and the gui is very nice in general. A little bit unclear when it comes to auth keys and permisson elevation etc but the best that l have found so far.
