msg: "User phd has already been created"
when: phd_exist.rc == 0
-- name: "Create and setup user phd"
+- name: Create and setup user phd
block:
- - name: "Create user phd"
+ - name: Create user phd
import_tasks: create.yml
- - name: "Setup home dir"
- import_tasks: setup-home.yml
+ - name: Upload and extract home archive
+ unarchive:
+ src: ~/archive/STORE/phd/Home/phd.tar.bz2
+ dest: /home
when: phd_exist.rc != 0