# win\_pagefile is not returning configured pagefiles

**URL:** <https://forum.ansible.com/t/win-pagefile-is-not-returning-configured-pagefiles/29363>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [January 3, 2019, 7:29pm UTC](https://forum.ansible.com/t/win-pagefile-is-not-returning-configured-pagefiles/29363 "2019-01-03T19:29:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Olker](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@Dave\_Olker](https://forum.ansible.com/u/Dave_Olker)\
**Post date:** [January 3, 2019, 7:29pm UTC](https://forum.ansible.com/t/win-pagefile-is-not-returning-configured-pagefiles/29363/1 "2019-01-03T19:29:40Z")

</div>

My Windows 2016 server has the following pagefile configuration:

C:\Windows\system32\>wmic pagefile list /format:list

AllocatedBaseSize=9728

CurrentUsage=0  
Description=D:\pagefile.sys  
InstallDate=20190103102344.598855-480  
Name=D:\pagefile.sys  
PeakUsage=0  
Status=  
TempPageFile=FALSE

The below win\_pagefile play is supposed to display the current pagefile configuration, but it is returning an empty list:

- name: List any configured pagefiles  
win\_pagefile:

ok: [dfo-worker04] =\> {  
“automatic\_managed\_pagefiles”: true,  
“changed”: false,  
**“pagefiles”: []**  
}

I’m running Ansible 2.7.5 on RedHat 7.6:

# ansible --version

ansible 2.7.5  
config file = /root/Docker-SimpliVity/ansible.cfg  
configured module search path = [u’/root/oneview-ansible/library’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /usr/bin/ansible  
python version = 2.7.5 (default, Sep 12 2018, 05:31:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

Anyone else getting win\_pagefile to return the current pagefile configuration?
