accelerate and hg trust problem

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
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?

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?

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

Are you also running as root in accelerate mode?

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.

-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.

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?