From 8c849496a6eef37baa7f9e5b1a6acaffdf1e2fae Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 15 Feb 2024 07:50:29 -0500 Subject: [PATCH] ansible: Ignore failures when clearing history during image cleanup Change-Id: I21b85ec6e05cc66f0874636cb212db39c8244aca Signed-off-by: Kienan Stewart --- automation/ansible/playbooks/post-imagebuild-clean.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/automation/ansible/playbooks/post-imagebuild-clean.yml b/automation/ansible/playbooks/post-imagebuild-clean.yml index d4eb23d..4a352fc 100644 --- a/automation/ansible/playbooks/post-imagebuild-clean.yml +++ b/automation/ansible/playbooks/post-imagebuild-clean.yml @@ -18,6 +18,9 @@ ignore_errors: true - ansible.builtin.shell: cmd: 'history -cw' + # Some default shells don't have the `history` built-in, + # and it's not blocking that this works or not. + ignore_errors: true - ansible.builtin.file: path: /root/.ssh/authorized_keys2 state: absent -- 2.34.1