homeserver/roles/mgrote.qemu_guest_agent/tasks/main.yml
mg f408590a63 qemu_guest_agent als rolle (#110)
qemu_guest_agent als rolle

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#110
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-06-08 07:48:24 +02:00

14 lines
340 B
YAML

---
- name: install packages
become: yes
ansible.builtin.package:
name: qemu-guest-agent
state: present
when: ansible_virtualization_role == 'guest'
register: qemu_installed
- name: reboot (dauert bis zu 2min!)
become: true
reboot:
reboot_timeout: 120
when: qemu_installed.changed == true