2023-09-25 20:48:29 +00:00
|
|
|
- name: Initialise VM
|
|
|
|
hosts: cloud
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- name: Wait for connection
|
|
|
|
ansible.builtin.wait_for_connection:
|
|
|
|
timeout: 300
|
|
|
|
- name: Install system packages
|
|
|
|
ansible.builtin.apt:
|
2023-09-25 20:57:43 +00:00
|
|
|
update_cache: true
|
2023-09-25 20:48:29 +00:00
|
|
|
package: qemu-guest-agent
|
|
|
|
state: latest
|
|
|
|
become: true
|
|
|
|
- name: Enable qemu-guest-agent
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: qemu-guest-agent
|
|
|
|
state: started
|
|
|
|
enabled: true
|
|
|
|
become: true
|