Home / Why ansible module fails to find file on a remote source that matches a ‘with_file_glob’ attribute

Why ansible module fails to find file on a remote source that matches a ‘with_file_glob’ attribute

To resolve this issue, create the file list in another task, or use a shell or command module to execute a copy command.

Local evaluation is performed on the with_file_glob attribute. When a path to a remote source is desired, the file glob expansion will be invalid.

This issue applies whenever a remote source is specified, and the with_file_glob attribute is applied.

 

Leave a Reply