From 08e645699ccfe00f8eb63df512138e5eeadc6061 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sat, 20 Jan 2024 17:05:27 +0100 Subject: [PATCH] ODJ comptage en live --- .../ansible => ansible}/ansible_hosts | 0 .../ansible => ansible}/cronjob_workflow.yml | 0 ansible/inventory.yml | 4 ++++ .../ansible => ansible}/orgcalendar.ics | 0 ansible/riseup.yml | 20 +++++++++++++++++++ .../server_tk_softwares.yml | 0 .../ansible => ansible}/snaps.yml | 0 .../ansible => ansible}/tk_softwares.yml | 0 8 files changed, 24 insertions(+) rename {bash/workflow_nextcloud/ansible => ansible}/ansible_hosts (100%) rename {bash/workflow_nextcloud/ansible => ansible}/cronjob_workflow.yml (100%) create mode 100644 ansible/inventory.yml rename {bash/workflow_nextcloud/ansible => ansible}/orgcalendar.ics (100%) create mode 100644 ansible/riseup.yml rename {bash/workflow_nextcloud/ansible => ansible}/server_tk_softwares.yml (100%) rename {bash/workflow_nextcloud/ansible => ansible}/snaps.yml (100%) rename {bash/workflow_nextcloud/ansible => ansible}/tk_softwares.yml (100%) diff --git a/bash/workflow_nextcloud/ansible/ansible_hosts b/ansible/ansible_hosts similarity index 100% rename from bash/workflow_nextcloud/ansible/ansible_hosts rename to ansible/ansible_hosts diff --git a/bash/workflow_nextcloud/ansible/cronjob_workflow.yml b/ansible/cronjob_workflow.yml similarity index 100% rename from bash/workflow_nextcloud/ansible/cronjob_workflow.yml rename to ansible/cronjob_workflow.yml diff --git a/ansible/inventory.yml b/ansible/inventory.yml new file mode 100644 index 00000000..aec947ed --- /dev/null +++ b/ansible/inventory.yml @@ -0,0 +1,4 @@ +all: + hosts: + proxmox: + ansible_host: proxmox.coussinet.org \ No newline at end of file diff --git a/bash/workflow_nextcloud/ansible/orgcalendar.ics b/ansible/orgcalendar.ics similarity index 100% rename from bash/workflow_nextcloud/ansible/orgcalendar.ics rename to ansible/orgcalendar.ics diff --git a/ansible/riseup.yml b/ansible/riseup.yml new file mode 100644 index 00000000..9e5175bd --- /dev/null +++ b/ansible/riseup.yml @@ -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 }}" \ No newline at end of file diff --git a/bash/workflow_nextcloud/ansible/server_tk_softwares.yml b/ansible/server_tk_softwares.yml similarity index 100% rename from bash/workflow_nextcloud/ansible/server_tk_softwares.yml rename to ansible/server_tk_softwares.yml diff --git a/bash/workflow_nextcloud/ansible/snaps.yml b/ansible/snaps.yml similarity index 100% rename from bash/workflow_nextcloud/ansible/snaps.yml rename to ansible/snaps.yml diff --git a/bash/workflow_nextcloud/ansible/tk_softwares.yml b/ansible/tk_softwares.yml similarity index 100% rename from bash/workflow_nextcloud/ansible/tk_softwares.yml rename to ansible/tk_softwares.yml