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
This commit is contained in:
parent
41ff58d5bc
commit
2690270a75
@ -17,17 +17,9 @@
|
|||||||
hosts: localhost
|
hosts: localhost
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install lvm2 apt package
|
|
||||||
apt:
|
|
||||||
name: lvm2
|
|
||||||
when:
|
|
||||||
- ansible_pkg_mgr == 'apt'
|
|
||||||
|
|
||||||
- name: Install lvm2 package
|
- name: Install lvm2 package
|
||||||
package:
|
package:
|
||||||
name: lvm2
|
name: lvm2
|
||||||
when:
|
|
||||||
- ansible_pkg_mgr in ['yum', 'dnf']
|
|
||||||
|
|
||||||
- name: Create sparse Cinder file
|
- name: Create sparse Cinder file
|
||||||
command: "truncate -s 10G /openstack/cinder.img"
|
command: "truncate -s 10G /openstack/cinder.img"
|
||||||
|
Loading…
Reference in New Issue
Block a user