Automate the configuration, optimization, management of your Proxmox environment with this comprehensive Ansible playbook. Tailored to help administrators adapt Proxmox to specific requirements, it streamlines performance tuning, simplifies system management, and ensures a seamless user experience.
This playbook is designed to automate the configuration, optimization, and management of a Proxmox system. It includes a wide range of features to help administrators quickly adapt Proxmox to specific requirements, improve performance, and ensure ease of use.
git clone git@github.com:yokozu777/proxmox-ansible.git
cd proxmox-ansible
Copy and customize the example variables file:
cp hosts_vars/example.yml hosts_vars/<your_host_name>.yml
Edit <your_host_name>.yml
to match your desired configuration.
To ensure a successful connection, make sure to fill in the following variables in your host vars file:
initial_user: root # The initial user for the system.
initial_password: P@ssw0rd* # The initial user's password.
If you prefer to use SSH keys for authentication, follow these steps:
Create a pub_keys
folder:
pub_keys
.Add your .pub
keys:
.pub
files) in the pub_keys
folder.User Association:
system_user
variable.system_user: localuser # The user to which the public keys will be added.
Update inventory.yml
with your host(s) and link to the variables file:
all:
hosts:
proxmox-host:
ansible_host: <your_proxmox_ip>
vars_files:
- hosts_vars/<your_host_name>.yml
If you do not have Ansible installed, but Docker is available, you can use the provided Dockerfile
for a quick setup.
Build the Docker Image:
docker build -t proxmox:latest .
Run the Docker Container:
docker run -it --name proxmox -v $PWD/:/opt proxmox:latest
This will create and start a Docker container with Ansible pre-installed, allowing you to run the playbook directly from the container.
ansible-playbook proxmox.yml
This repository contains an advanced Ansible playbook for automating the configuration, optimization, and management of Proxmox VE.
The playbook is compatible with Proxmox VE versions 7 and 8 and has been tested on both versions using GRUB and UEFI boot configurations.
/etc
directory for Proxmox.jq
, nano
) and remove unnecessary packages.performance
, powersave
, schedutil
).lxc
, spiceproxy
, corosync
).radeon
, nouveau
, nvidia
).This playbook is ideal for administrators looking to streamline the deployment and management of Proxmox, minimize errors, and enhance the performance of their virtualization platform.