# Trying to switch to Accelerate and hitting two issues

**URL:** <https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539>\
**Category:** Ansible Project\
**Created:** [September 24, 2013, 9:22am UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539 "2013-09-24T09:22:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom\_dymond](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@tom\_dymond](https://forum.ansible.com/u/tom_dymond)\
**Post date:** [September 24, 2013, 9:22am UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/1 "2013-09-24T09:22:07Z")

</div>

Hi,

I’m trying to switch from fireball to accelerate and getting a few issues.

The first issue I’m getting is that it doesn’t appear to support the formatting of my hosts file that i’ve been using for months:

[api]

live-api2.xx ansible\_ssh\_host=11.22.33.44 private\_ip=22.33.44.55 private\_hostname=live-api2.internal.xx cron\_state=absent

This generates the following error: fatal: [live-api2.xx] =\> host not found: 11.22.33.44

I’m able to work around the issue by replacing the line with:

live-api2.xx private\_ip=22.33.44.55 private\_hostname=live-api2.internal.xx cron\_state=absent

and ensuring the first part fully resolves (Before this was not an issue)

The second problem is that the playbook then fails on: live-api2.xx (reason: keyczar is not installed). This leads me to believe that the variable: ansible\_python\_interpreter: /root/.virtualenvs/ansible/bin/python defined in the vars: section of the playbook is not working as I expect. I can work around the issue probably by just installing python-keyczar in the base python rather than a virtualenv

Cheers,

Tom

---

<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:** [September 24, 2013, 1:48pm UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/2 "2013-09-24T13:48:11Z")

</div>

Could you open up a github issue for the first problem? That one is especially odd, since the python documentation clearly states that when an IP address is used it should not result in a DNS lookup.

For the second, you should be able to verify the daemon’s interpreter by looking at the output of “ps aux | grep python”, as the daemon should be started with the same interpreter.

---

<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:** [September 25, 2013, 3:40pm UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/3 "2013-09-25T15:40:48Z")

</div>

Benno (@bennojoy) tracked down the first issue and I just merged in his fix for this, if you’d like to give it a try.

---

<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:** [September 25, 2013, 11:46pm UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/4 "2013-09-25T23:46:41Z")

</div>

Hi Tom,

Can you confirm whether you fixed that by installing keyczar there on the local or remote end?

I’d expect exactly that for the local end.

Thanks!

---

<div class="post-metadata">

**Author:** ![Manuel\_Jimenez](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@Manuel\_Jimenez](https://forum.ansible.com/u/Manuel_Jimenez)\
**Post date:** [September 26, 2013, 6:36am UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/5 "2013-09-26T06:36:25Z")

</div>

Hello,

I’ve problems with accelerate mode too. I’m unable to use in any of my servers. I have installed kyczar in both (local and remote) and always ansible returns the same error:

PLAY [ansibletest] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [ansibletest] =\> python-keyczar must be installed to use fireball/accelerated mode

Regards!

---

<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:** [September 26, 2013, 6:59am UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/6 "2013-09-26T06:59:16Z")

</div>

Are you also installing in a virtualenv?

---

<div class="post-metadata">

**Author:** ![Manuel\_Jimenez](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@Manuel\_Jimenez](https://forum.ansible.com/u/Manuel_Jimenez)\
**Post date:** [September 26, 2013, 7:47am UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/7 "2013-09-26T07:47:33Z")

</div>

No, the python-\* packages are installed globally in the system via apt-get. Ansible uses openssh to connect to servers.

---

<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:** [September 26, 2013, 12:25pm UTC](https://forum.ansible.com/t/trying-to-switch-to-accelerate-and-hitting-two-issues/13539/8 "2013-09-26T12:25:22Z")

</div>

“Ansible uses openssh to connect to servers.”

And also accelerate mode, in your case above.

Please make sure it’s available on your local host too.

You might be using ansible\_python\_interpreter and it’s not available in that Python. Perhaps not.

In either case, maybe hop on IRC and we can help figure it out.
