changeset 2:e8555f703e69

use python3
author anatofuz
date Sun, 26 May 2019 10:08:59 +0900
parents d8ead3008bd2
children 0b8c5ca67cfd
files main.yml
diffstat 1 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/main.yml	Sun May 26 07:50:49 2019 +0900
+++ b/main.yml	Sun May 26 10:08:59 2019 +0900
@@ -12,6 +12,7 @@
   vars:
     qemu_version: 4.0.0
     csum: 13a93dfe75b86734326f8d5b475fde82ec692d5b5a338b4262aeeb6b0fa4e469
+    ansible_python_interpreter: /usr/bin/python3
 
   pre_tasks:
   - name: Get ansible_user home directory
@@ -24,13 +25,17 @@
   tasks:
   - name: install qemu dev packages
     dnf:
-        name: ['wget', 'gcc', 'gdb', 'make', 'pixman-devel'] 
+        name: ['wget', 'gcc', 'gdb', 'make', 'pixman-devel', 'python'] 
         state: present
 
-  - name: create_download_src_direcoty
+  - name: create_download_src_directory
     file: path={{ ansible_home }}/src
           state=directory
 
+  - name: create_build_directory
+    file: path={{ ansible_home }}/build
+          state=directory
+
   - name: download qemu source code
     get_url: url=https://download.qemu.org/qemu-{{ qemu_version }}.tar.xz
              dest=~/src/qemu-{{ qemu_version }}.tar.xz sha256sum={{ csum }}
@@ -39,13 +44,14 @@
   - name: unarchive a qemu sorce
     shell: "{{ item }}"
     with_items: 
-    - tar -xvf qemu-{{ qemu_version }}.tar.xv
+    - tar -xvf qemu-{{ qemu_version }}.tar.xz
     args:
       chdir: "{{ ansible_home }}/src/"
 
-  - name: create_build_directory
-    file: path= "{{ ansible_home }}/build"
-          state=directory
+  - name: execute configure
+    shell: './configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,arm-linux-user --enable-kvm --enable-debug --prefix={{ ansible_home }}/build'
+    args:
+      chdir: "{{ ansible_home }}/src/qemu-{{ qemu_version }}"
 
     #
     #- name: install kernel