# Iterating ansible\_mounts and adding items to a list

**URL:** <https://forum.ansible.com/t/iterating-ansible-mounts-and-adding-items-to-a-list/32674>\
**Category:** Ansible Project\
**Created:** [April 13, 2020, 6:15pm UTC](https://forum.ansible.com/t/iterating-ansible-mounts-and-adding-items-to-a-list/32674 "2020-04-13T18:15:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harry\_devine](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/harry_devine/32/5293_2.png) [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Post date:** [April 13, 2020, 6:15pm UTC](https://forum.ansible.com/t/iterating-ansible-mounts-and-adding-items-to-a-list/32674/1 "2020-04-13T18:15:52Z")

</div>

I’m trying to come up a way to iterate through ansible\_mounts and, if one of the mounts is over 80% used, add that to a list that i can print out later and possibly email it. Here’s what I have so far:
