Skip to content
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

copy does not overriting file if same file but different permissions #115

Closed
knutov opened this issue Jun 4, 2023 · 1 comment · Fixed by #118
Closed

copy does not overriting file if same file but different permissions #115

knutov opened this issue Jun 4, 2023 · 1 comment · Fixed by #118

Comments

@knutov
Copy link
Contributor

knutov commented Jun 4, 2023

      - name: copy pub key
        copy: {"src": "keys/id_ed25519.pub", "dst": "/tmp/spot.key"}

first run original file was 644 and was copied with 644 permissions.

Then permissions was set to 600, spot was run again and the file was still 644.

Also it could be very useful to have ability to copy file to remote file created by mktemp (to have random name and limited access) with exporting that filename to some variable

@umputun
Copy link
Owner

umputun commented Jun 5, 2023

I think this is a deficiency in #77 which does by default "quick check" what includes modification time and size only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants