]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Update dependencies for zap tasks 341/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 2 Oct 2017 19:10:04 +0000 (15:10 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 2 Oct 2017 19:10:04 +0000 (15:10 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/zap_disks.yml

index 4686a97e361b9c9b9a8ce56a37a192a905f9f3fc..e893f5ed450f0de63044720f9f46924288664409 100644 (file)
@@ -1,8 +1,26 @@
 ---
-- name: Make sure gdisk is installed
-  package:
-    name: gdisk
+# These zap tasks are run on freshly reimaged cobbler_managed machines
+# even when using the -stock profiles.  Therefore, testnode package
+# installation hasn't happened yet so we install zap dependencies here.
+
+- name: Make sure apt dependencies are installed
+  apt:
+    name: "{{ item }}"
+    state: present
+  with_items:
+    - gdisk
+    - dmsetup
+  when: ansible_os_family == "Debian"
+
+- name: Make sure rpm dependencies are installed
+  yum:
+    name: "{{ item }}"
     state: present
+  with_items:
+    - gdisk
+    # for dmsetup
+    - device-mapper
+  when: ansible_os_family == "RedHat"
 
 - name: Set root disk
   set_fact: