In (/mydata/myserver/ConServer1 ) i have many files which are different extensions (yml,txt,j2,) how do use (/mydata/myserver/ConServer1 -type f -name “files*”) “files*” do i need to provide same “files*” i don’t understand this ? do i need to provide any file extensions or filenames ?
I was testing step by step for task
- name: list file and register location
raw: find /mydata/myserver/ConServer1 -type f -name "files*"
register: files_found
- name: debug file
debug:
var: files_found.stdout_lines