Automate your Proxmox cluster with Ansible - Installation & Configuration + your first playbook!



Project Tiny Homelab EP5

In this video I will teach you how to SSH into your Proxmox Nodes. Install and configure Ansible and how you can execute commands on your nodes. And I will help you build your first playbook to automate system upgrades.

SSH Key set-up:
ssh-keygen -t ed25519
cat .ssh/id_rsa.pub
nano .ssh/authorized_keys
ssh root@YOURIP

Installing Ansible
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-on-specific-operating-systems

brew install ansible
ansible all –list-hosts
sudo mkdir /etc/ansible
sudo nano /etc/ansible/hosts

[proxmox-lab]
1.1.1.1
2.2.2.2
3.3.3.3
4.4.4.4

Ansible commands:
ansible all –list-hosts
ansible all -m ping -u root

Run Ansible Playbook
ansible-playbook -u root ansible/homelab/proxmox_update.yml

Gear we use on Kit (affiliate)
➡️ https://kit.co/cybermonk

Website
➡️ https://cyber-monk.io

⏰ Timestamps
00:00 Introduction, what is Ansible
00:28 SSH Access to cluster
02:08 Installing Ansible
02:47 Configuring Ansible Hosts
03:35 First Ansible command!
03:57 Unleashing the power of Ansible with Playbooks
05:42 Executing the playbook & Outro

source

5 thoughts on “Automate your Proxmox cluster with Ansible – Installation & Configuration + your first playbook!”
  1. Did you already use Ansible or some other form of automation tool? I'm planning a Terraform episode as well.

  2. I saw you were copying your ssh keys over to the Proxmox host, you could use ssh-copy-id command to do the same.

Leave a Reply

Your email address will not be published.

Captcha loading...