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: "Setup home dir"
15 import_tasks: setup-home.yml
16 when: phd_exist.rc != 0