1 - name: Test if user phd already exists
2 command: test -f ~/.profile -a -f ~/.shellrc
7 msg: "User phd has already been created"
8 when: phd_exist.rc == 0
10 - name: Create and setup user phd
12 - name: Create user phd
13 import_tasks: create.yml
14 - name: Upload and extract home archive
16 src: ~/archive/STORE/phd/Home/phd.tar.bz2
18 when: phd_exist.rc != 0