Hello, I have a number of templates that are generated by Ansible but I need them combined into a single file. Is there a way to do this without having to do a shell command "file1 >> newFile.txt"
For example I have 4 files and I need to merge the content from these 4 source files to a single destination file. File1 > dest.txt File2 >> dest.txt File3 >> dest.txt File4 >> dest.txt In my case these 4 files were generated by Ansible Templates. Since I have a vars file that is a data dictionary it creates multiple files. From these multiple files I need to merge them into a single file. I looked at lineinfile but I'm not saving a single line but 50 - 100 lines. Is there a better way to do this other than using shell commands? -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/BN6PR03MB27230C3C7FF1C6E6CAD3BFE6DDFE0%40BN6PR03MB2723.namprd03.prod.outlook.com. For more options, visit https://groups.google.com/d/optout.
<<attachment: winmail.dat>>
