- Merge proxmox and hardware plays into one play - Replace serial: 1 with throttle: 1 so an unreachable host no longer aborts the run - Restart qemu-guest-agent only via handler when the package changes - Combine cache update, upgrade, autoremove and autoclean into one apt task - Move net-tools install to inst-vm-core.yaml Co-Authored-By: Claude Opus 5.5 <[email protected]>
21 lines
459 B
YAML
21 lines
459 B
YAML
---
|
|
- name: Install core packages for virtual machines
|
|
hosts: 192.168.1.15
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Install packages
|
|
ansible.builtin.apt:
|
|
name:
|
|
- prometheus-node-exporter
|
|
- nfs-common
|
|
- qemu-guest-agent
|
|
- net-tools
|
|
update_cache: true
|
|
|
|
- name: Start guest qemu-guest-agent
|
|
ansible.builtin.service:
|
|
name: qemu-guest-agent
|
|
state: started
|
|
enabled: true
|