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