diff --git a/roles/privacy/tasks/clear_history.yml b/roles/privacy/tasks/clear_history.yml index 35cc9211..a72604fe 100644 --- a/roles/privacy/tasks/clear_history.yml +++ b/roles/privacy/tasks/clear_history.yml @@ -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