From 8106ec7b61aa0c857e35a8e8985763a19e1eec88 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 17 Jul 2019 03:01:05 +0300 Subject: [PATCH] Feat(debian/phd): Merge `setup-home` back into `main` --- playbooks/roles/debian/phd/tasks/main.yml | 10 ++++++---- playbooks/roles/debian/phd/tasks/setup-home.yml | 4 ---- 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 playbooks/roles/debian/phd/tasks/setup-home.yml diff --git a/playbooks/roles/debian/phd/tasks/main.yml b/playbooks/roles/debian/phd/tasks/main.yml index fb60720..455605f 100644 --- a/playbooks/roles/debian/phd/tasks/main.yml +++ b/playbooks/roles/debian/phd/tasks/main.yml @@ -7,10 +7,12 @@ msg: "User phd has already been created" when: phd_exist.rc == 0 -- name: "Create and setup user phd" +- name: Create and setup user phd block: - - name: "Create user phd" + - name: Create user phd import_tasks: create.yml - - name: "Setup home dir" - import_tasks: setup-home.yml + - name: Upload and extract home archive + unarchive: + src: ~/archive/STORE/phd/Home/phd.tar.bz2 + dest: /home when: phd_exist.rc != 0 diff --git a/playbooks/roles/debian/phd/tasks/setup-home.yml b/playbooks/roles/debian/phd/tasks/setup-home.yml deleted file mode 100644 index 8f7b112..0000000 --- a/playbooks/roles/debian/phd/tasks/setup-home.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Upload and extract home archive - unarchive: - src: ~/archive/STORE/phd/Home/phd.tar.bz2 - dest: /home -- 2.39.5