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
Do not create local copy of backup file before extracting Tor config #5919
Conversation
dest: "{{ torrc_check_dir.path }}/backup/" | ||
src: "{{ restore_file }}" | ||
src: "{{playbook_dir}}/{{ restore_file }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For .tar.gz
files, the unarchive
module appears to expect full paths and will fail (misleadingly) with "Failed to find handler" on relative paths; see ansible/ansible#35645. The "Failed to find handler" issue arises only if we enable the remote_src
setting, which suggests to me that otherwise, Ansible may pass along the full path to the copy it has created.
|
9271258
to
5d079ad
Compare
(Rebased to pick up #5911.) |
5d079ad
to
e040fed
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5919 +/- ##
========================================
Coverage 85.37% 85.37%
========================================
Files 53 53
Lines 3876 3876
Branches 480 480
========================================
Hits 3309 3309
Misses 455 455
Partials 112 112 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Works great.
Status
Ready for review
Description of Changes
Fixes #5918
Testing
Estimated testing time: ~30-60 minutes (depending on any errors encountered)
Using a VM or production server environment, from your Admin Workstation:
--force
to runsecuredrop-admin
commands directly from this branch)(I suggest cancelling the large file transfer to the server, assuming it successfully proceeds to that stage.)
Checklist
make lint
) and tests (make test
) pass in the development container