mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-03 22:04:32 +01:00
20 lines
449 B
YAML
20 lines
449 B
YAML
---
|
|
- name: Install core packages for virtual machines
|
|
hosts: "{{ my_hosts | d([]) }}"
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Install packages
|
|
ansible.builtin.apt:
|
|
name:
|
|
- prometheus-node-exporter
|
|
- nfs-common
|
|
- qemu-guest-agent
|
|
update_cache: true
|
|
|
|
- name: Start guest qemu-guest-agent
|
|
ansible.builtin.service:
|
|
name: qemu-guest-agent
|
|
state: started
|
|
enabled: true
|