migrate
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[homelab]
|
||||
192.168.2.1
|
||||
192.168.2.2
|
||||
192.168.2.3
|
||||
192.168.2.7
|
||||
192.168.2.8
|
||||
192.168.2.9
|
||||
192.168.2.10
|
||||
192.168.2.13
|
||||
192.168.2.14
|
||||
192.168.2.16
|
||||
#192.168.2.17
|
||||
#192.168.2.18
|
||||
192.168.2.19
|
||||
192.168.2.20
|
||||
192.168.2.22
|
||||
192.168.2.23
|
||||
192.168.2.24
|
||||
150.136.35.94
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: Install QEMU Guest Agent
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Update package cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Install QEMU Guest Agent on Debian/Ubuntu
|
||||
apt:
|
||||
name: qemu-guest-agent
|
||||
state: present
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Enable and start QEMU Guest Agent service
|
||||
systemd:
|
||||
name: qemu-guest-agent
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Ensure QEMU Guest Agent is running
|
||||
service:
|
||||
name: qemu-guest-agent
|
||||
state: started
|
||||
|
||||
|
||||
# This playbook will:
|
||||
#
|
||||
# Update the package cache on Debian-based systems.
|
||||
# Install the QEMU Guest Agent on Debian/Ubuntu systems.
|
||||
# Enable and start the QEMU Guest Agent service.
|
||||
# Ensure the QEMU Guest Agent is running.
|
||||
#
|
||||
# You can save this as a YAML file (e.g., install_qemu_guest_agent.yml) and run it using the command:
|
||||
|
||||
# Command: ansible-playbook -i inventory.ini qemuagentinstall.yml -K #-K is for BECOME sudo password
|
||||
Reference in New Issue
Block a user