# boolean variable in action\_plugins

**URL:** <https://forum.ansible.com/t/boolean-variable-in-action-plugins/12446>\
**Category:** Ansible Project\
**Created:** [March 2, 2013, 8:25am UTC](https://forum.ansible.com/t/boolean-variable-in-action-plugins/12446 "2013-03-02T08:25:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves\_Dorfsman](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Post date:** [March 2, 2013, 8:25am UTC](https://forum.ansible.com/t/boolean-variable-in-action-plugins/12446/1 "2013-03-02T08:25:47Z")

</div>

How can I make a variable a boolean (with all the nice setup and check like in a regular module) in an action\_plugins?

Thanks.

---

<div class="post-metadata">

**Author:** ![Daniel\_Hokka\_Zakriss](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Daniel\_Hokka\_Zakriss](https://forum.ansible.com/u/Daniel_Hokka_Zakriss)\
**Post date:** [March 2, 2013, 9:45am UTC](https://forum.ansible.com/t/boolean-variable-in-action-plugins/12446/2 "2013-03-02T09:45:51Z")

</div>

Yves Dorfsman wrote:

> How can I make a variable a boolean (with all the nice setup and check  
> like in  
> a regular module) in an action\_plugins?

action\_plugins have none of those niceities. You will have to use  
utils.boolean yourself.

Daniel
