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:
Dan Guido 2025-08-17 15:34:55 -04:00
parent 837a35f52f
commit 6b68e09a8a

View file

@ -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