--- # file: roles/sut/tasks/ubuntu_bionic.yaml - name: Install CSIT dependencies apt: name: - 'dkms' - 'pkg-config' - 'libglib2.0-dev' - 'autoconf' - 'libtool' - 'screen' - 'libmbedcrypto1' - 'libmbedtls10' - 'libmbedx509-0' - 'lxc' - 'openjdk-8-jdk' - 'libpixman-1-dev' - 'python-cffi' - 'python-cffi-backend' - 'python3-cffi' - 'python3-cffi-backend' state: 'present' install_recommends: False tags: install-csit-dependencies - name: Get kernel-kvm version shell: "apt-cache depends -i linux-image-kvm | grep Depends: | cut -d' ' -f4" register: 'linux__image_kvm_read' tags: install-kernelvm - name: Download kernel-kvm shell: "apt-get -y download {{ linux__image_kvm_read.stdout }}" args: warn: false # Prevent warning as APT module does not support download. register: 'linux__image_kvm_download' when: 'linux__image_kvm_read' tags: install-kernelvm - name: Unpack kernel-kvm shell: "dpkg --extract {{ linux__image_kvm_read.stdout }}_*.deb /opt/" when: 'linux__image_kvm_download' tags: install-kernelvm