]> git.phdru.name Git - ansible.git/commitdiff
Fix(root): Remove '.bash_history'
authorOleg Broytman <phd@phdru.name>
Tue, 8 Mar 2022 18:48:10 +0000 (21:48 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 9 Mar 2022 11:54:27 +0000 (14:54 +0300)
Ansible doesn't allow to change type from file to symlink.

playbooks/roles/root/tasks/root.yml

index 5ca9f960c6e574ceda7c24fbdb4c8f5778ebddf9..756af8cb0cfbb6a04a78ba9141b18a0671b64b26 100644 (file)
     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: