I have the below playbook, I wanted to download the files from gitlab on same path with different names. I have below playbook,
As can seen below source path is same but file name is different, I need to have src path defined and should mention only file names in loop or may be i can read these names from different file itself.
Thanks for your help, I came up with another one, if you could provide your input that would be great.
Please let me know is this looking ok, what I am trying to do is t
If your “patches.txt” file is part of your source repo anyway, you could list the patches in a “group_vars/app.yml” file and use the containing variable directly. There are lots of other ways to do it as well.
If the file is on the remote host(s), then prior to the task where you need the data, do an ansible.builtin.command task which **cat**s the file and registers the result. Then on the “Download the patches” task, say