ansible: Ignore failures when clearing history during image cleanup
authorKienan Stewart <kstewart@efficios.com>
Thu, 15 Feb 2024 12:50:29 +0000 (07:50 -0500)
committerKienan Stewart <kstewart@efficios.com>
Thu, 15 Feb 2024 12:50:29 +0000 (07:50 -0500)
Change-Id: I21b85ec6e05cc66f0874636cb212db39c8244aca
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/playbooks/post-imagebuild-clean.yml

index d4eb23ddfb4457c8fdb9db6378d7278946b24288..4a352fc24db60c1c18a83cf2f268fe261e25fb3e 100644 (file)
@@ -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
This page took 0.02414 seconds and 4 git commands to generate.