diff --git a/tasks/install.yaml b/tasks/install.yaml index 8e34e9b..a1816e2 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -17,6 +17,23 @@ diskimage_builder_build_depends: "{{ __diskimage_builder_build_depends | list }}" when: diskimage_builder_build_depends is not defined +- when: + - ansible_distribution == "Ubuntu" + - ansible_distribution_version == "18.04" + block: + - name: Add buildah repository key + become: yes + apt_key: + url: https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_18.04/Release.key + state: present + + - name: Enable buildah repository + become: yes + apt_repository: + repo: deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ / + update_cache: yes + filename: buildah + - name: Define diskimage_builder_depends set_fact: diskimage_builder_depends: "{{ __diskimage_builder_depends | list }}" diff --git a/vars/Debian.yaml b/vars/Debian.yaml index 9cfc08c..cd4d298 100644 --- a/vars/Debian.yaml +++ b/vars/Debian.yaml @@ -23,5 +23,6 @@ __diskimage_builder_depends: - qemu-utils - uuid-runtime - yum-utils + - podman __diskimage_builder_package_name: python-diskimage-builder