playbooks: bifrost-create-dib-image: Add required dib packages

mkfs.ext4 is used when building dib images so we need to make sure
it's installed on the host. This adds a new dib_host_required_packages
list to denote which packages are required on the host for the dib
process to work properly.

Change-Id: I7701e4525b6b6a4e01a324d724d139e9d7466d19
This commit is contained in:
Markos Chandras 2017-11-30 10:23:00 +00:00
parent f664ea3deb
commit a9f0fd9ded
2 changed files with 20 additions and 0 deletions

View File

@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: Ensure required packages are installed
package:
name: "{{ dib_host_required_packages }}"
state: present
# If attempting to utilize a base Ubuntu image, diskimage-builder
# is the recommended, and default path.
- name: "Test if image is present"

View File

@ -0,0 +1,16 @@
# Copyright (c) 2017 SUSE Linux GmbH.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
dib_host_required_packages:
- e2fsprogs