On Mon, 26 Aug 2019 05:53:03 -0700 (PDT)
Tuyen Nguyen <[email protected]> wrote:

> Actually, it didn't quite work :(  The task was able to run through but I 
> just realized it was not importing the file in correct as a list for the 
> whitelist.  

Use "from_yaml" filter and take a look what you get

    - set_fact:
        my_data: "{{ lookup('file','patchlist.txt')|from_yaml }}"
    - debug:
        var: my_data

Then use "my_data" in the update. This should be something similar to the
line below

       whitelist: "{{ my_data.<name_of_the_list_inside_patchlist_txt> }}"

Cheers,

        -vlado

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20190826161536.703113b9%40gmail.com.

Attachment: pgpX57yLzLfyN.pgp
Description: OpenPGP digital signature

Reply via email to