X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Froot%2Ftasks%2Froot.yml;h=b713f01625c7d622f72bdcfd59c94ab68b096b58;hb=ee4e33b1419e3af81023e9ae17d0726b79c6c90f;hp=5824fda33187bd051304fe52b1508b04be26ecc2;hpb=edf447b86f291118443987ab67de35b99e9b2d38;p=ansible.git diff --git a/playbooks/debian/roles/root/tasks/root.yml b/playbooks/debian/roles/root/tasks/root.yml index 5824fda..b713f01 100644 --- a/playbooks/debian/roles/root/tasks/root.yml +++ b/playbooks/debian/roles/root/tasks/root.yml @@ -39,6 +39,12 @@ '.screenrc', '.shellrc', '.tmux.conf', '.vimrc', ] +- name: "Setup ~root - check .sh_history" + become: true + stat: + path: ~root/.sh_history + register: sh_history + - name: "Setup ~root - create .sh_history" become: true file: @@ -47,6 +53,7 @@ owner: root group: root mode: "0600" + when: not sh_history.stat.exists - name: "Setup ~root - link .bash_history" become: true