SemaphoreDocs
Search…
Troubleshooting

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
roles:
- ...
  1. 1.
    Explicit set conneciton type to ssh:
[localhost]
127.0.0.1 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.
Copy link
On this page
Gathering Facts issue for localhost
Why it happens
How to fix
fatal: bad numeric config value '0' for 'GIT_TERMINAL_PROMPT': invalid unit
How to fix