readd directory

This commit is contained in:
Antoine Ouvrard
2023-03-09 17:29:50 +01:00
parent be5eb0822b
commit 3fe3b6e90a
23 changed files with 1016 additions and 0 deletions
@@ -0,0 +1,19 @@
#!/bin/bash
echo "====Informations générales===="
echo "Nombre de CPU: " $(grep processor /proc/cpuinfo | wc -l)
echo 'Mémoire RAM en Go: ' $(echo "scale=2; $(grep MemTotal /proc/meminfo |awk '{print $2}') / 1024^2" | bc)
echo "OS: " $(cat /etc/redhat-release)
echo "Noyau: " $(uname -r)
echo "Zimbra: " $(sudo -u zimbra /opt/zimbra/bin/zmcontrol -v)
echo ""
echo "====Arborescence des périphérique de stockage===="
lsblk -fe7
echo ""
echo "====Utilisation du système de fichier===="
df -H
echo ""
echo "====Information concernant les cartes réseau===="
ip a
echo ""
echo "====Liste des zimlets installées sur ce serveur===="
awk '/Installed Zimlets in LDAP:/{exit}1' < <(sudo -u zimbra /opt/zimbra/bin/zmzimletctl listzimlets)
@@ -0,0 +1,11 @@
---
#- name: set script
# ansible.builtin.copy:
# src: get_info.sh
# dest: /root/tmp.sh
# mode: 0700
- name: delete script
ansible.builtin.file:
path: /root/tmp.sh
state: absent