ansible playbook unable to continue as the `tar` fails due to `file change as we read`
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am running an ansible-playbook which is doing running tar command to zip a directory. Following is the ansible task. - name: tar the old code command: tar -czf {{ansible_date_time.date}}.tar.gz /home/ubuntu/my-folder The above gives the following error. "warnings": use unarchive module rather than running tar stderr: tar: Removing leading '/' from member names tar: /home/ubuntu/my-folder/xyz.log: file change as we read it I also tried with option --ignore-failed-read but it didn't zipped the directory but ran the rest of the tasks