-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lineinfile backup doesn't work on FAT32 #10591
Comments
A possible fix would be to use a unix timestamp or alternatively This code could also live in a try-except block. |
many of our file operations will fail on non POSIX file systems, still this should not be a traceback |
This is very simple to fix though. So I think it's worth the effort :) Alternatively, a way to specify the destination path for the backup file would be even better. |
it is already in a try block, it does not capture IOErrors though, which it should. as for this being a 'simple' fix, yes, if we wan't to break backwards compatibility, it is simple, but we don't. |
Please fix this, FAT32 is required in some situation, such as the raspberry pi boot partition. An opt in option to alternative backup file names should not break backwards compatibility. |
Issue Type:
Bug Report
Ansible Version:
Environment:
Running on Arch Linux, managing Raspbian on a Raspberry Pi.
Summary:
When using the lineinfile module with backup=yes on a FAT32 file system, I get an exception.
It appears that some of the characters (I think at least the colon in the timestamp) are invalid on FAT32.
Steps To Reproduce:
I used the following task:
Expected Results:
It works :)
Actual Results:
The text was updated successfully, but these errors were encountered: