From 6ed351a58a7452d6bd99a049cc45610345b7c75b Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Sun, 17 Mar 2019 18:15:30 +0000 Subject: Prepare image for KernelVM on machines. TASK [sut : Get kernel-kvm version] *************************************** changed: [10.30.51.52] TASK [sut : Download kernel-kvm] ****************************************** changed: [10.30.51.52] TASK [sut : Unpack kernel-kvm] ******************************************** changed: [10.30.51.52] PLAY RECAP **************************************************************** 10.30.51.52 : ok=4 changed=3 unreachable=0 failed=0 Change-Id: I452f35e12c94fc58374679de21e87e36b145f987 Signed-off-by: Peter Mikus --- .../testbed-setup/ansible/roles/sut/tasks/main.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'resources/tools/testbed-setup/ansible/roles/sut') diff --git a/resources/tools/testbed-setup/ansible/roles/sut/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/sut/tasks/main.yaml index 90990b6c3b..53f1f9b6c2 100644 --- a/resources/tools/testbed-setup/ansible/roles/sut/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/sut/tasks/main.yaml @@ -15,3 +15,22 @@ state: 'link' become: yes tags: copy-80-vpp + +- 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 + -- cgit 1.2.3-korg