# accelerate and hg trust problem

**URL:** <https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618>\
**Category:** Ansible Project\
**Created:** [October 7, 2013, 12:32am UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618 "2013-10-07T00:32:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Li\_Ming\_Tsai](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@Li\_Ming\_Tsai](https://forum.ansible.com/u/Li_Ming_Tsai)\
**Post date:** [October 7, 2013, 12:32am UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618/1 "2013-10-07T00:32:57Z")

</div>

Hi,

I have accelerate=true in one of my playbooks, however pip install with a hg module will fail with a trust issue like this:

- hosts: webservers  
user: XXX  
accelerate: true

Obtaining flickrapi from hg+https://bitbucket.org/sybren/flickrapi#egg=flickrapi (from -r /home/me/deployment/explorer/current/requirements.txt (line 52))  
hg clone in /home/me/venv/src/flickrapi exists with URL Not trusting file /home/me/venv/src/flickrapi/.hg/hgrc from untrusted user XXX, group XXX  
Not trusting file /home/me/venv/src/flickrapi/.hg/hgrc from untrusted user XXX, group XXX  
The plan is to install the hg repository [https://bitbucket.org/sybren/flickrapi](https://bitbucket.org/sybren/flickrapi)  
What to do? (s)witch, (i)gnore, (w)ipe, (b)ackup Cleaning up…

If I remove the accelerate option and use plain ssh, it will work without any errors.

How do I set it correctly?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 7, 2013, 3:28am UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618/2 "2013-10-07T03:28:08Z")

</div>

Is this something you were getting before because you were forwarding SSH credentials?

If so, accelerate mode doesn’t use SSH.

I’m not familiar with that particular error message from my couple of years of using hg, however – doesn’t seem like a forwarding kind of error.

Anyone have ideas?

---

<div class="post-metadata">

**Author:** ![Li\_Ming\_Tsai](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@Li\_Ming\_Tsai](https://forum.ansible.com/u/Li_Ming_Tsai)\
**Post date:** [October 7, 2013, 4:20am UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618/3 "2013-10-07T04:20:14Z")

</div>

I don’t think I was doing anything special but I was running ansible-playbook with -u root -c ssh via the command line.

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [October 7, 2013, 6:00am UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618/4 "2013-10-07T06:00:11Z")

</div>

Are you also running as root in accelerate mode?

---

<div class="post-metadata">

**Author:** ![Li\_Ming\_Tsai](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@Li\_Ming\_Tsai](https://forum.ansible.com/u/Li_Ming_Tsai)\
**Post date:** [October 7, 2013, 6:06am UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618/5 "2013-10-07T06:06:44Z")

</div>

Hi,

I run with -u root via the command line and “user: XXX” in the playbook. If I take out the accelerate mode, it works as user XXX without any complaint.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 7, 2013, 12:13pm UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618/6 "2013-10-07T12:13:09Z")

</div>

-u root on the command line sets a default for where “user: XXX” is not specified on the play, so this means you’re running as you.

---

<div class="post-metadata">

**Author:** ![Li\_Ming\_Tsai](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@Li\_Ming\_Tsai](https://forum.ansible.com/u/Li_Ming_Tsai)\
**Post date:** [October 7, 2013, 1:44pm UTC](https://forum.ansible.com/t/accelerate-and-hg-trust-problem/13618/7 "2013-10-07T13:44:52Z")

</div>

Yeah, that’s what I expected it. But why does using accelerate fails when the user is specified in the play since accelerate does not use ssh?
