Troubleshooting
4:10:16 PM
TASK [Gathering Facts] *********************************************************
4:10:17 PM
fatal: [localhost]: FAILED! => changed=false
Ansible tries to gather facts locally, but Ansible is located in limited isolated container which doesn't allow this.
There are two ways:
- 1.Disable facts gathering:
- hosts: localhost
gather_facts: False
roles:
- ...
- 2.Explicitly set connection type to ssh:
[localhost]
127.0.0.1 ansible_connection=ssh ansible_ssh_user=your_localhost_user
This means that you are trying to access a repository over HTTPS that requires authentication.
- Go to Key Store screen.
- Create a new key
Login with password
type. - Specify your login for GitHub/BitBucket/etc.
- Specify the password. You can't use your account password for GitHub/BitBucket, you should use a Personal Access Token (PAT) instead of it. Read more here.
- After creating the key, go to the Repositories screen, find your repository and specify the key.
Most likely, you are trying to connect to the LDAP server using an insecure method, although it expects a secure connection (via TLS).
Enable TLS in your
config.json
file:...
"ldap_needtls": true
...
You have the wrong password or
binddn
.Use
ldapwhoami
tool and check if your binddn works:ldapwhoami\
-H ldap://ldap.com:389\
-D "CN=/your/ldap_binddn/value/in/config/file"\
-x\
-W
It will ask interactively for the password and should return code 0 and echo out the DN as specified.
You also can read the following articles:
Coming soon.
Last modified 7mo ago