mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-30 04:04:20 +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
|