ODJ comptage en live

This commit is contained in:
Tykayn 2024-01-20 17:05:27 +01:00 committed by tykayn
parent 4adff7864c
commit 08e645699c
8 changed files with 24 additions and 0 deletions

4
ansible/inventory.yml Normal file
View File

@ -0,0 +1,4 @@
all:
hosts:
proxmox:
ansible_host: proxmox.coussinet.org

20
ansible/riseup.yml Normal file
View File

@ -0,0 +1,20 @@
- name: Connexion à un hôte Proxmox
hosts: proxmox
tasks:
- name: Connect to Proxmox Host
proxmox_kvm:
host: proxmox.coussinet.org
user: username
password: password
register: proxmox_connection
- name: Check if Git is installed
command: pveversion --version
register: git_version
failed_when: false
- name: Show Git Version
debug:
msg: "Git Version: {{ git_version.stdout }}"
vars:
git_version: "{{ git_version.stdout }}"