# How to specify No Value for a key in Ansible yaml?

**URL:** <https://forum.ansible.com/t/how-to-specify-no-value-for-a-key-in-ansible-yaml/33983>\
**Category:** Ansible Developer\
**Created:** [October 7, 2020, 7:37pm UTC](https://forum.ansible.com/t/how-to-specify-no-value-for-a-key-in-ansible-yaml/33983 "2020-10-07T19:37:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skwok](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@skwok](https://forum.ansible.com/u/skwok)\
**Post date:** [October 7, 2020, 7:37pm UTC](https://forum.ansible.com/t/how-to-specify-no-value-for-a-key-in-ansible-yaml/33983/1 "2020-10-07T19:37:45Z")

</div>

I’m a newbie in Ansible and I’d like to use the aws\_ec2 plugin to return a list of ec2 instances with 2 tags: env=stage and a=(empty). I’m using “filters” with “tag” like the followings:

```auto
filters:
tag:Env:
- stage
tag:a:
-

```

Besides leaving a blank, I’ve also tried “”, ‘’, None, \_, null, ~, but they all failed to return the list. I’ve also tried using the “tag-key” “filter” but no luck:

```auto
filters:
tag-key:
- a

```

Can someone please help? Also, would you also use filters?

Thanks.
