Hi, You can reference the actual path by using pwd:
bolt file upload $(pwd)/inventory.yaml /root/ -t login Hth, Martin > On 27. Apr 2022, at 14:24, Helmut Rickel <[email protected]> wrote: > > Hello, > this surely is a beginners question: > Using bolt, I want to download a file from one server and upload it to a > another server. Problem: The function download_file uses a destination path > relative to the project directory, but upload_file needs an absolute source > path. How do I get this absolute source path? > > Thanks for your help! > > Kind regards > Helmut > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/de6003ab-cb05-46fb-b22c-c57ce5a07a05n%40googlegroups.com > > <https://groups.google.com/d/msgid/puppet-users/de6003ab-cb05-46fb-b22c-c57ce5a07a05n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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/puppet-users/632346B0-23CE-4A4E-A83B-550D496706C8%40gmail.com.
