I hope I can explain this clearly, as I encounter one problem and need to use something apart from simply mv (rename) module in Ansible.
I have a task and one of the problem I encounter is that I need to download one file, which has name file-latest.zip. When I unarchive it, first folder I see will be name file-1.2.20 for example. Now, of that name depends how I am going to organize many files and templates. Next time, behind this file-latest.zip will be updated version or file-1.2.21, which I never know.
I would like somehow, when I unarchive, to save it in some variables latest name of that file and then to work further with that variable, but I am not too sure how to figure this out.
I am very beginner in this and this gave me so many thoughts and could not go around and find solution.