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

Unable to authenticate with git repo on Microsoft Team Foundation Server #39858

Closed
mattycarlson opened this issue May 8, 2018 · 6 comments

Comments

Projects
None yet
5 participants
@mattycarlson
Copy link

commented May 8, 2018

ISSUE TYPE

Bug Report

COMPONENT NAME

git module

ANSIBLE VERSION

Ansible 2.4.1.0
Tower 3.2.4

CONFIGURATION
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/etc/ansible/hosts']
DEFAULT_SUDO_USER(/etc/ansible/ansible.cfg) = root
OS / ENVIRONMENT

Red Hat Enterprise Linux Server release 7.2 (Maipo)

SUMMARY

After an upgrade from Ansible Tower 3.1.4 to 3.2.4, we're unable to authenticate with our Git repo on our Microsoft Team Foundation Server.

If this issue is not posted in the correct area, please let me know where to post it.

STEPS TO REPRODUCE

Run project job.

EXPECTED RESULTS
Using /etc/ansible/ansible.cfg as config file [DEPRECATION WARNING]: DEFAULT_ASK_SUDO_PASS
option, In favor of become which is a generic framework . This feature will be removed in
version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.

PLAY [all] *********************************************************************

TASK [delete project directory before update] **********************************
skipping: [localhost]

TASK [update project using git and accept hostkey] *****************************
skipping: [localhost]

TASK [Set the git repository version] ******************************************
skipping: [localhost]

TASK [update project using git] ************************************************
changed: [localhost]

TASK [Set the git repository version] ******************************************
ok: [localhost]

TASK [update project using hg] *************************************************
skipping: [localhost]

TASK [Set the hg repository version] *******************************************
skipping: [localhost]

TASK [update project using svn] ************************************************
skipping: [localhost]

TASK [Set the svn repository version] ******************************************
skipping: [localhost]

TASK [update project using svn with auth] **************************************
skipping: [localhost]

TASK [Set the svn repository version] ******************************************
skipping: [localhost]

TASK [update project using insights] *******************************************
skipping: [localhost]

TASK [Ensure the project directory is present] *********************************
skipping: [localhost]

TASK [Fetch Insights Playbook With Name] ***************************************

TASK [Fetch Insights Playbook] *************************************************

TASK [detect requirements.yml] *************************************************
ok: [localhost]

TASK [fetch galaxy roles from requirements.yml] ********************************
skipping: [localhost]

TASK [parse subversion version string properly] ********************************
skipping: [localhost]
ACTUAL RESULTS
Using /etc/ansible/ansible.cfg as config file [DEPRECATION WARNING]: DEFAULT_ASK_SUDO_PASS
option, In favor of become which is a generic framework . This feature will be removed in
version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg

PLAY [all] *********************************************************************

TASK [delete project directory before update] **********************************
skipping: [localhost]

TASK [update project using git and accept hostkey] *****************************
skipping: [localhost]

TASK [Set the git repository version] ******************************************
skipping: [localhost]

TASK [update project using git] ************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/local/bin/git", "fetch",
"--tags", "origin"], "failed": true, "msg": "Failed to download remote objects and refs:
fatal: Authentication failed for
'https://$encrypted$:$encrypted$@tfs.mycompany.com/tfs/DefaultCollection/_git/'\n"}

PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1
@ansibot

This comment has been minimized.

Copy link
Contributor

commented May 8, 2018

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@mattycarlson

This comment has been minimized.

Copy link
Author

commented May 10, 2018

Duplicate issue.

@robertdebock

This comment has been minimized.

Copy link
Contributor

commented Jun 25, 2018

What's the (original or duplicate) issue?

I've been trying to find it, but am unsuccessful.

@jhcook

This comment has been minimized.

Copy link

commented Dec 19, 2018

Why is this closed? There is no fix for this as far as I know.

@mattycarlson

This comment has been minimized.

Copy link
Author

commented Dec 19, 2018

We changed the authentication to use an SSH key and it's working now. TFS no longer supports basic auth.

@jhcook

This comment has been minimized.

Copy link

commented Dec 19, 2018

We changed the authentication to use an SSH key and it's working now. TFS no longer supports basic auth.

Thanks. So there is no fix per se. I need to submit a change request to allow ssh to TFS :)

@ansible ansible locked and limited conversation to collaborators May 10, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.