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