From 93bccaddfd556db383411568ea8bd93157327da8 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sat, 16 Sep 2023 02:30:17 +0200 Subject: [PATCH] quemu_guest: add role + playbook --- playbooks/qemu_guest.yml | 7 +++++++ roles/qemu_guest/tasks/main.yml | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100755 playbooks/qemu_guest.yml create mode 100644 roles/qemu_guest/tasks/main.yml diff --git a/playbooks/qemu_guest.yml b/playbooks/qemu_guest.yml new file mode 100755 index 0000000..12dc5ec --- /dev/null +++ b/playbooks/qemu_guest.yml @@ -0,0 +1,7 @@ +#!/usr/bin/env ansible-playbook +--- +- hosts: + - vm_network + roles: + - qemu_guest +... diff --git a/roles/qemu_guest/tasks/main.yml b/roles/qemu_guest/tasks/main.yml new file mode 100644 index 0000000..475c906 --- /dev/null +++ b/roles/qemu_guest/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: Install QEMU guest agent + apt: + name: qemu-guest-agent + +- name: Enable QEMU guest agent + systemd: + name: qemu-guest-agent + state: started + enabled: true +...