From: Oleg Broytman Date: Tue, 8 Mar 2022 18:48:10 +0000 (+0300) Subject: Fix(root): Remove '.bash_history' X-Git-Url: https://git.phdru.name/?p=ansible.git;a=commitdiff_plain;h=e972de01f3d645a0e93a0e947c34d15625e0e1d6 Fix(root): Remove '.bash_history' Ansible doesn't allow to change type from file to symlink. --- diff --git a/playbooks/roles/root/tasks/root.yml b/playbooks/roles/root/tasks/root.yml index 5ca9f96..756af8c 100644 --- a/playbooks/roles/root/tasks/root.yml +++ b/playbooks/roles/root/tasks/root.yml @@ -66,6 +66,12 @@ mode: "0600" when: not sh_history.stat.exists +- name: "Setup ~root - remove .bash_history" + become: true + file: + path: ~root/.bash_history + state: absent + - name: "Setup ~root - link .bash_history" become: true file: