# Accelerate mode and variables

**URL:** <https://forum.ansible.com/t/accelerate-mode-and-variables/13819>\
**Category:** Ansible Project\
**Created:** [October 31, 2013, 10:52pm UTC](https://forum.ansible.com/t/accelerate-mode-and-variables/13819 "2013-10-31T22:52:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Howell](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathan\_Howell](https://forum.ansible.com/u/Nathan_Howell)\
**Post date:** [October 31, 2013, 10:52pm UTC](https://forum.ansible.com/t/accelerate-mode-and-variables/13819/1 "2013-10-31T22:52:47Z")

</div>

Should it be possible to enable/disable accelerate mode based on a variable? I’d like to have something like this:

In group\_vars/all:

accelerate\_mode: true

In a playbook:

- hosts: targets  
accelerate: “{{ accelerate\_mode }}”  
…

So that’s what I’d like to have, but it doesn’t work. The only value that has any effect is a literal ‘true’ (and accelerate mode then works). Anything else is ignored, and accelerate mode is not used. Is there any way to do this? Thanks,

Nathan

---

<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:** [November 1, 2013, 12:24am UTC](https://forum.ansible.com/t/accelerate-mode-and-variables/13819/2 "2013-11-01T00:24:25Z")

</div>

When reporting things, it’s always great to include the output of “ansible --version”.

This is probably just a case of this variable needing to be templated.

Let me know!

---

<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:** [November 1, 2013, 12:30am UTC](https://forum.ansible.com/t/accelerate-mode-and-variables/13819/3 "2013-11-01T00:30:24Z")

</div>

I have tested this, and it was working fine a week ago. In addition to the information Mike requested, could you also include a pastebin/gist of your play running with -vvvv?

---

<div class="post-metadata">

**Author:** ![Nathan\_Howell](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathan\_Howell](https://forum.ansible.com/u/Nathan_Howell)\
**Post date:** [November 1, 2013, 12:32am UTC](https://forum.ansible.com/t/accelerate-mode-and-variables/13819/4 "2013-11-01T00:32:18Z")

</div>

Sorry about that, I’m running a dev version from yesterday: 078aaa9 .

Nathan

---

<div class="post-metadata">

**Author:** ![Nathan\_Howell](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@Nathan\_Howell](https://forum.ansible.com/u/Nathan_Howell)\
**Post date:** [November 1, 2013, 12:59am UTC](https://forum.ansible.com/t/accelerate-mode-and-variables/13819/5 "2013-11-01T00:59:29Z")

</div>

Here’s a gist with the setup and output: [https://gist.github.com/neh/7259611](https://gist.github.com/neh/7259611)

Nathan

---

<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:** [November 2, 2013, 2:44am UTC](https://forum.ansible.com/t/accelerate-mode-and-variables/13819/6 "2013-11-02T02:44:46Z")

</div>

I suspect it wasn’t tested with an inventory variable – templated in playbook land, but not in “runner” land.

We are going to look into it.
