]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/phd/tasks/main.yml
Feat(debian): Change directory structure
[ansible.git] / playbooks / debian / roles / phd / tasks / main.yml
1 - name: Test if user phd already exists
2   command: test -f ~/.profile -a -f ~/.shellrc
3   ignore_errors: true
4   register: phd_exist
5
6 - debug:
7     msg: "User phd has already been created"
8   when: phd_exist.rc == 0
9
10 - name: Create and setup user phd
11   block:
12     - name: Create user phd
13       import_tasks: create.yml
14     - name: Upload and extract home archive
15       unarchive:
16         src: ~/archive/STORE/phd/Home/phd.tar.bz2
17         dest: /home
18   when: phd_exist.rc != 0