Semaphore Docs


Gathering Facts issue for localhost

The issue can occur on Ansible Semaphore which installed via Snap or Docker.
4:10:16 PM
TASK [Gathering Facts] *********************************************************
4:10:17 PM
fatal: [localhost]: FAILED! => changed=false

Why it happens

More information about localhost in Ansible read in article Implicit 'localhost'.
Ansible tries to gathering facts locally, but Ansible localed in limited isolated container which doesn't allow this.

How to fix

There are two ways:
  1. 1.
    Disable facts gathering:
- hosts: localhost
gather_facts: False
- ...
  1. 1.
    Explicit set conneciton type to ssh:
[localhost] ansible_connection=ssh ansible_ssh_user=your_localhost_user

fatal: bad numeric config value '0' for 'GIT_TERMINAL_PROMPT': invalid unit

This means that you are trying to access a repository over HTTPS that requires authentication.

How to fix

  • Go to Key Store screen.
  • Create new key with type Login with password.
  • Specify your login for GitHub/BitBucket/etc.
  • Specify the password. You can't use your account password for GitHub/BitBucket, you should use Personal Access Token (PAT) instead of it. Read more here.
  • After creating the key, go to Repositories screen, find your repository and specify the key.

unable to read LDAP response packet: unexpected EOF

Most likely, you are trying to connect to the LDAP server using an insecure method, although it expects a secure connection (via TLS).

How to fix

Enable TLS in your config.json:
"ldap_needtls": true

LDAP Result Code 49 "Invalid Credentials"

You have wrong password or binddn.

How to fix

Use ldapwhoami tool and check if your binddn works:
-H ldap://\
-D "CN=/your/ldap_binddn/value/in/config/file"\
It will ask interactively for the password and should return code 0 and echo out the DN as specified.
You also can read following articles:

LDAP Result Code 32 "No Such Object"

Coming soon.