diff --git a/playbooks/roles/bifrost-create-dib-image/tasks/main.yml b/playbooks/roles/bifrost-create-dib-image/tasks/main.yml index 1f6d10a8b..6576a23e5 100644 --- a/playbooks/roles/bifrost-create-dib-image/tasks/main.yml +++ b/playbooks/roles/bifrost-create-dib-image/tasks/main.yml @@ -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" diff --git a/playbooks/roles/bifrost-create-dib-image/vars/main.yml b/playbooks/roles/bifrost-create-dib-image/vars/main.yml new file mode 100644 index 000000000..64b053d73 --- /dev/null +++ b/playbooks/roles/bifrost-create-dib-image/vars/main.yml @@ -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