Mercurial > hg > Ansible > fedora_qemu_debug_build
changeset 1:d8ead3008bd2
fix_syntax
author | anatofuz |
---|---|
date | Sun, 26 May 2019 07:50:49 +0900 |
parents | bb6fff966de1 |
children | e8555f703e69 |
files | main.yml |
diffstat | 1 files changed, 7 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/main.yml Sun May 26 07:25:07 2019 +0900 +++ b/main.yml Sun May 26 07:50:49 2019 +0900 @@ -6,11 +6,12 @@ # ssh localhost -p 2222 -l root 'cd /usr/src/kernels ; tar czf - fedora' | dd of=fedora26-kernel.tgz - hosts: all - remote_user: xxxx + remote_user: syster_clown become: yes become_method: sudo vars: qemu_version: 4.0.0 + csum: 13a93dfe75b86734326f8d5b475fde82ec692d5b5a338b4262aeeb6b0fa4e469 pre_tasks: - name: Get ansible_user home directory @@ -22,13 +23,9 @@ tasks: - name: install qemu dev packages - dnf: name={{ item }} state=present - with_items: - - wget - - gcc - - gdb - - make - - pixman-devel + dnf: + name: ['wget', 'gcc', 'gdb', 'make', 'pixman-devel'] + state: present - name: create_download_src_direcoty file: path={{ ansible_home }}/src @@ -44,10 +41,10 @@ with_items: - tar -xvf qemu-{{ qemu_version }}.tar.xv args: - chdir: ~/src + chdir: "{{ ansible_home }}/src/" - name: create_build_directory - file: path={{ ansible_home }}/build + file: path= "{{ ansible_home }}/build" state=directory #