Mercurial > hg > Ansible > fedora_qemu_debug_build
changeset 3:0b8c5ca67cfd default tip
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 26 May 2019 11:57:48 +0900 |
parents | e8555f703e69 |
children | |
files | main.yml |
diffstat | 1 files changed, 21 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/main.yml Sun May 26 10:08:59 2019 +0900 +++ b/main.yml Sun May 26 11:57:48 2019 +0900 @@ -3,15 +3,13 @@ # # rsync -av -e 'ssh -p 2222' ~/.ssh/id_rsa.pub xxx@localhost:.ssh/authorized_keys # screen -L ansible-playbook -i hosts main.yml --ask-become-pass -# ssh localhost -p 2222 -l root 'cd /usr/src/kernels ; tar czf - fedora' | dd of=fedora26-kernel.tgz +# memory size more 8GB is required - hosts: all - remote_user: syster_clown - become: yes - become_method: sudo + remote_user: xxxxxx # overwrite your username vars: qemu_version: 4.0.0 - csum: 13a93dfe75b86734326f8d5b475fde82ec692d5b5a338b4262aeeb6b0fa4e469 + csum: 13a93dfe75b86734326f8d5b475fde82ec692d5b5a338b4262aeeb6b0fa4e469 #csum is 4.0.0 sha256sum ansible_python_interpreter: /usr/bin/python3 pre_tasks: @@ -24,12 +22,14 @@ tasks: - name: install qemu dev packages + become: yes + become_method: sudo dnf: - name: ['wget', 'gcc', 'gdb', 'make', 'pixman-devel', 'python'] + name: ['wget', 'gcc', 'gdb', 'make', 'pixman-devel', 'python', 'glib2-devel'] state: present - name: create_download_src_directory - file: path={{ ansible_home }}/src + file: path={{ ansible_home }}/src/qemu-{{ qemu_version }} state=directory - name: create_build_directory @@ -41,22 +41,23 @@ dest=~/src/qemu-{{ qemu_version }}.tar.xz sha256sum={{ csum }} register: download_qemu_code - - name: unarchive a qemu sorce - shell: "{{ item }}" - with_items: - - tar -xvf qemu-{{ qemu_version }}.tar.xz - args: - chdir: "{{ ansible_home }}/src/" + - name: unarchive a qemu source + unarchive: + src: "{{ ansible_home }}/src/qemu-{{ qemu_version }}.tar.xz" + dest: "{{ ansible_home }}/src" + remote_src: yes - 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 - # shell: "{{ item }}" - # with_items: - # - make install - # args: - # chdir: /usr/src/kernels/fedora + - name: make + shell: 'make -j' + args: + chdir: "{{ ansible_home }}/src/qemu-{{ qemu_version }}" + + - name: make install + shell: 'make install' + args: + chdir: "{{ ansible_home }}/src/qemu-{{ qemu_version }}"