From ddeafb772e497be951cc78e7a28bf3feb4d0ae96 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 20 Apr 2022 14:41:46 +0300 Subject: [PATCH] Feat(roles/qemu): Install QEMU --- playbooks/roles/qemu/README.txt | 1 + playbooks/roles/qemu/tasks/main.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 playbooks/roles/qemu/README.txt create mode 100644 playbooks/roles/qemu/tasks/main.yml diff --git a/playbooks/roles/qemu/README.txt b/playbooks/roles/qemu/README.txt new file mode 100644 index 0000000..363f3a3 --- /dev/null +++ b/playbooks/roles/qemu/README.txt @@ -0,0 +1 @@ +Install QEMU (currently Debian-only). diff --git a/playbooks/roles/qemu/tasks/main.yml b/playbooks/roles/qemu/tasks/main.yml new file mode 100644 index 0000000..ee12b9f --- /dev/null +++ b/playbooks/roles/qemu/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install QEMU (Debian) + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: [qemu, qemu-utils, qemu-system-x86, qemu-system-gui] + state: latest + update_cache: yes + when: ansible_facts.os_family == 'Debian' -- 2.39.5