mg
f408590a63
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>
14 lines
340 B
YAML
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
|