From 2690270a75f8bb59e7310b3b066f06008317a995 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Tue, 21 Nov 2017 11:09:36 -0600 Subject: [PATCH] Use package module to install lvm2 The lvm2 package has the same name across supported distros so a single package task can be used. Change-Id: Ifbf648d3f3604ae3e727a853b512d5b34ba059ac --- test-setup-cinder-localhost.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test-setup-cinder-localhost.yml b/test-setup-cinder-localhost.yml index 564858c3..e9912b4f 100644 --- a/test-setup-cinder-localhost.yml +++ b/test-setup-cinder-localhost.yml @@ -17,17 +17,9 @@ hosts: localhost become: true tasks: - - name: Install lvm2 apt package - apt: - name: lvm2 - when: - - ansible_pkg_mgr == 'apt' - - name: Install lvm2 package package: name: lvm2 - when: - - ansible_pkg_mgr in ['yum', 'dnf'] - name: Create sparse Cinder file command: "truncate -s 10G /openstack/cinder.img"