Create a list from a file ? -- wanting to use win_updates module and import a list of patches to the whitelist option

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?