Skip to content

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Shell

🧰 Proxmox (PVE) – Maintenance & Ansible Playbooks

Automating VM and LXC updates on a Proxmox VE server using Ansible and shell scripts.

📁 Project tree structure


├─ ansible.cfg
├─ playbooks/
│  ├─ pve.upgrade.yml
│  └─ pve.proxmox.yml
├─ scripts/
│  └─ update.sh
├─ .gitignore
├─ README.md

This repository contains:

  • Ansible playbooks to administer/update VMs and LXCs,
  • a maintenance script to automate certain tasks.

⚙️ Prerequisites

  • Ansible >= 2.19
  • Ansible collection (community.proxmox.proxmox_snap, community.proxmox.proxmox)
  • SSH keys configured on each VM or LXC

🗂️ Folder structure

  • playbooks/: Ansible playbooks
  • scripts/: shell script for launching playbooks
  • vault/: Ansible vault

Vault exemple

ansible-vault create vault/proxmox_secrets.vault
url: "https://10.0.0.1:8006"
user: "your user"
token_id: "your token name"
proxmox_token_secret: "your token secret"

🚀 Launching the script

chmod 700 script/update.sh

./scripts/update.sh

About

Mise à jour des VM et LXC d'un serveur Proxmox

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages