# Need clarification regarding ios\_facts module

**URL:** <https://forum.ansible.com/t/need-clarification-regarding-ios-facts-module/34723>\
**Category:** Ansible Project\
**Created:** [March 4, 2021, 5:29pm UTC](https://forum.ansible.com/t/need-clarification-regarding-ios-facts-module/34723 "2021-03-04T17:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikram\_S](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Post date:** [March 4, 2021, 5:29pm UTC](https://forum.ansible.com/t/need-clarification-regarding-ios-facts-module/34723/1 "2021-03-04T17:29:36Z")

</div>

I usually use below script to check free space before proceeding to copy image. But when i need to copy image to a stacked switch, will this command show free space in ALL member switches or will it show only master switch free space?

I don’t have a stacked switch to test. So need your advise before i implement in prod.

name: Gather IOS Facts

ios\_facts:

- debug:  
msg: - “Free space is {{ ansible\_net\_memfree\_mb }}”

If i give additional command that image need to be copied only if i give a conditional that image should be copied only when free space is above certain MB, will ii check this conditional only for master switch or for all memnber switches?

- name: COPY IOS IMAGE TO DEVICE AND ALLOW MAXIMUM TIME OF 60 MINS TO FINISH

- when: - ansible\_net\_memfree\_mb \>= 1113
