]> git.phdru.name Git - ansible.git/blob - playbooks/roles/debian-phd/tasks/setup-home.yml
Feat(debian-phd): Setup home directory
[ansible.git] / playbooks / roles / debian-phd / tasks / setup-home.yml
1 - name: Upload archive
2   copy:
3     src: ~/archive/STORE/phd/Home/phd.tar.bz2
4     dest: /tmp
5
6 - name: Extract archive
7   shell: "cd /tmp && bzcat phd.tar.bz2 | tar xf -"
8
9 - name: Copy home
10   command: rsync -a /tmp/phd /home
11
12 - name: Cleanup
13   file:
14     path: "{{ item }}"
15     state: absent
16   loop: ['/tmp/phd', '/tmp/phd.tar.bz2']