Hi I have a file with list of filenames .I want to read each line and add a
variable {{version}} to the end and pass it to another task which will
download the artifact
*MY_File*
cat file/branches.txt mhr- mtr- tsr
I want to get each line add {{version}} to it
mhr-1.1-SNAPSHOT mtr-1.1-SNAPSHOT tsr-1.1-SNAPSHOT
I couldn't get the file names and append them. below is a failed attempt by
me.
---
- name: get file names
shell: echo {{item}}{{version}}
register: result
with_lines: cat files/branches.txt
- include_tasks: 2main.yml
with_items: "{{result.results}}"
--
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/d69c6de2-16dd-4d9d-bf03-beb113a0e69cn%40googlegroups.com.