# Create a list from a file ?  -- wanting to use win\_updates module and import a list of patches to the whitelist option

**URL:** <https://forum.ansible.com/t/create-a-list-from-a-file-wanting-to-use-win-updates-module-and-import-a-list-of-patches-to-the-whitelist-option/28920>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 1, 2018, 12:46pm UTC](https://forum.ansible.com/t/create-a-list-from-a-file-wanting-to-use-win-updates-module-and-import-a-list-of-patches-to-the-whitelist-option/28920 "2018-11-01T12:46:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tuyen\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Post date:** [November 1, 2018, 12:46pm UTC](https://forum.ansible.com/t/create-a-list-from-a-file-wanting-to-use-win-updates-module-and-import-a-list-of-patches-to-the-whitelist-option/28920/1 "2018-11-01T12:46:56Z")

</div>

Hi

In the ansible playlist, can we define a file for the playlist to import the values of the option? Instead of having to put each value in the playbook itself?

In my example, I am using the win\_updates module which has the whitelist option to define what patches to deploy to the Windows machine.

- win\_updates:  
category\_name:
- SecurityUpdates
- CriticalUpdates
- UpdatesRollups  
state: installed  
whitelist:
- KB4011125
- KB4011026  
…

My list of patches is actually more than 1000 for it to check against, and the patch list would change every month when new patches are released. Is it possible to define a text file that would have the list of patches for the ansible playlist to open when the playlist is called to get the definition of the whitelist option?
