[stable-2.10] Add pause to avoid same mtime in test.

(cherry picked from commit 3d769f3a76)

Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
Matt Clay 2020-09-02 15:08:04 -07:00
parent ec8878ced4
commit fd27c4db71

View file

@ -242,6 +242,10 @@
follow: False follow: False
register: file8_initial_dir_stat register: file8_initial_dir_stat
- name: Pause to ensure stat times are not the exact same
pause:
seconds: 1
- name: Use touch with directory as dest - name: Use touch with directory as dest
file: file:
dest: '{{output_dir}}/sub1' dest: '{{output_dir}}/sub1'