X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Froot%2Ftasks%2Froot.yml;h=fb8d446f9234187b1ba78bccc8bde4f0b5e2dd58;hb=d8db111bb38f5d764ddfa853629a42e86e9572ac;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..fb8d446 100644 --- a/playbooks/debian/roles/root/tasks/root.yml +++ b/playbooks/debian/roles/root/tasks/root.yml @@ -39,6 +39,13 @@ '.screenrc', '.shellrc', '.tmux.conf', '.vimrc', ] +- name: "Setup ~root - check .sh_history" + become: true + stat: + path: ~root/.sh_history + register: sh_history + changed_when: not sh_history.stat.exists + - name: "Setup ~root - create .sh_history" become: true file: @@ -47,6 +54,7 @@ owner: root group: root mode: "0600" + when: not sh_history.stat.exists - name: "Setup ~root - link .bash_history" become: true @@ -59,7 +67,7 @@ - name: "Setup ~root - create tmp/" become: true file: - path: tmp/vim/undo + path: ~root/tmp/vim/undo state: directory owner: root group: root