X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fphd%2Ftasks%2Fmain.yml;h=a26a738cf7af22bece6f41f84bdfbfd51312f2a9;hb=86f60f40dd650fcf9ac23e40b9afa8357d00e2c2;hp=1ca3a4b3c8340b70fd436ce2a836328395618a41;hpb=e2f84bb9d51c4452b61763857dee14db8bc32824;p=ansible.git diff --git a/playbooks/debian/roles/phd/tasks/main.yml b/playbooks/debian/roles/phd/tasks/main.yml index 1ca3a4b..a26a738 100644 --- a/playbooks/debian/roles/phd/tasks/main.yml +++ b/playbooks/debian/roles/phd/tasks/main.yml @@ -30,8 +30,21 @@ group: phd groups: "{{ system_groups }}" + - name: Remove mc directories + file: + path: "{{ item }}" + state: absent + loop: ['~/.cache/mc', '~/.config/mc', '~/.local/share/mc'] + - name: Upload and extract home archive unarchive: src: ~/archive/STORE/phd/Home/phd.tar.bz2 dest: /home + + - name: Add alias + become: true + lineinfile: + path: /etc/aliases + regexp: "^root: phd$" + line: "root: phd" when: phd_exists.results|selectattr('stat.exists')|list|length != 2