# \- meta: refresh\_inventory doesn't work with a "when:" condition

**URL:** <https://forum.ansible.com/t/meta-refresh-inventory-doesnt-work-with-a-when-condition/25625>\
**Category:** Ansible Project\
**Created:** [September 28, 2017, 3:18pm UTC](https://forum.ansible.com/t/meta-refresh-inventory-doesnt-work-with-a-when-condition/25625 "2017-09-28T15:18:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arlindo.santos](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@arlindo.santos](https://forum.ansible.com/u/arlindo.santos)\
**Post date:** [September 28, 2017, 3:18pm UTC](https://forum.ansible.com/t/meta-refresh-inventory-doesnt-work-with-a-when-condition/25625/1 "2017-09-28T15:18:42Z")

</div>

When using the meta module, how come it doesn’t work with a “when” condition, it will always run regardless of the when condition?

- meta: refresh\_inventory

when: xxxx ← doesn’t matter what you put here meta refresh will always run?

Is this by design?
