Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: What do I need to do when a task hangs #2534

Open
MaKaNu opened this issue Nov 12, 2024 · 2 comments
Open

Question: What do I need to do when a task hangs #2534

MaKaNu opened this issue Nov 12, 2024 · 2 comments
Labels

Comments

@MaKaNu
Copy link

MaKaNu commented Nov 12, 2024

Question

I have installed semaphore manual on a LXC container. My ansible Installation playbook is basically the process described for manual installation via deb file.

After figuring out how to give my semaphore user access to our private role repos, I thought I made it, but every playbook stops directly at the first tasks:

Here with gather_facts:
image

And here without:
image

My Simple test which works perfectly if I run locally:

---
- name: Run Base Setup
  hosts: semaphore-test
  become: true
  gather_facts: false
  roles:
    - base

Related to

Web-Frontend (what users interact with)

@bence42
Copy link

bence42 commented Nov 13, 2024

@MaKaNu
I'm guessing it's waiting for you to accept fingerprint.
see decade old bug here,

if that's the case, the solution is to pass ANSIBLE_HOST_KEY_CHECKING via env var to semaphoreui

      - ANSIBLE_HOST_KEY_CHECKING=False
      - SEMAPHORE_FORWARDED_ENV_VARS=["ANSIBLE_HOST_KEY_CHECKING"]

or have this setting in ansible.cfg in your ansible repo:

[defaults]
host_key_checking = False

@MaKaNu
Copy link
Author

MaKaNu commented Nov 13, 2024

You are right. So Probably the best solution is to insert the Hostkeys via the ansible script for semaphore UI itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants