1 - name: Test if user phd already exists
5 loop: ['~/.profile', '~/.shellrc']
8 msg: "User phd has already been created"
9 when: phd_exists.results|selectattr('stat.exists')|list|length == 2
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_exists.results|selectattr('stat.exists')|list|length == 2