win_pagefile is not returning configured pagefiles

9 views
Skip to first unread message

Dave Olker

unread,
Jan 3, 2019, 2:29:40 PM1/3/19
to Ansible Project
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?
Reply all
Reply to author
Forward
0 new messages