]> git.phdru.name Git - ansible.git/commitdiff
Feat(debian/phd): Merge `setup-home` back into `main`
authorOleg Broytman <phd@phdru.name>
Wed, 17 Jul 2019 00:01:05 +0000 (03:01 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 17 Jul 2019 00:18:34 +0000 (03:18 +0300)
playbooks/roles/debian/phd/tasks/main.yml
playbooks/roles/debian/phd/tasks/setup-home.yml [deleted file]

index fb60720734bb026938db21e82cf7799e0801096a..455605f45225f57ee9cd14ba4ef9505991f20cce 100644 (file)
@@ -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 (file)
index 8f7b112..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-- name: Upload and extract home archive
-  unarchive:
-    src: ~/archive/STORE/phd/Home/phd.tar.bz2
-    dest: /home