diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 0c8e09660ec..6cebdd5912e 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -2058,7 +2058,7 @@ class AnsibleModule(object): backupdest = '' if os.path.exists(fn): - # backups named basename-YYYY-MM-DD@HH:MM:SS~ + # backups named basename.PID.YYYY-MM-DD@HH:MM:SS~ ext = time.strftime("%Y-%m-%d@%H:%M:%S~", time.localtime(time.time())) backupdest = '%s.%s.%s' % (fn, os.getpid(), ext)