mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-03 10:33:13 +02:00
Fix 'history: not found' error in privacy role
The 'history -c' command was failing because history is a bash built-in that doesn't exist in /bin/sh (Ubuntu's default shell for scripts). Changes: - Removed the 'Clear current session history' task since it's ineffective in Ansible context (each task runs in a new shell) - History files are already cleared by the existing file removal tasks - Added explanatory comment about why session history clearing is omitted This fixes the deployment failure while maintaining all effective history clearing functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
837a35f52f
commit
6b68e09a8a
1 changed files with 2 additions and 4 deletions
|
@ -55,7 +55,5 @@
|
|||
group: root
|
||||
when: privacy_history_clearing.clear_bash_history | bool
|
||||
|
||||
- name: Clear current session history
|
||||
shell: history -c
|
||||
changed_when: false
|
||||
when: privacy_history_clearing.clear_bash_history | bool
|
||||
# Note: We don't clear current session history as each Ansible task
|
||||
# runs in its own shell session, making this operation ineffective
|
||||
|
|
Loading…
Add table
Reference in a new issue