feat: Implement container customization and add Portainer installation/removal playbooks.
Tests / Backend Tests (Python) (3.10) (push) Has been cancelled
Tests / Backend Tests (Python) (3.11) (push) Has been cancelled
Tests / Backend Tests (Python) (3.12) (push) Has been cancelled
Tests / Frontend Tests (JS) (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / All Tests Passed (push) Has been cancelled
Tests / Backend Tests (Python) (3.10) (push) Has been cancelled
Tests / Backend Tests (Python) (3.11) (push) Has been cancelled
Tests / Backend Tests (Python) (3.12) (push) Has been cancelled
Tests / Frontend Tests (JS) (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / All Tests Passed (push) Has been cancelled
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
# ❌ Playbook: Install_Container_Portainer
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `pb_efa9e73df0df` |
|
||||
| **Nom** | Playbook: Install_Container_Portainer |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | failed |
|
||||
| **Type** | Manuel |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T00:39:45.125595+00:00 |
|
||||
| **Fin** | 2025-12-24T00:39:55.119840+00:00 |
|
||||
| **Durée** | 10.0s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
|
||||
PLAY [Déploiement de Portainer CE] *********************************************
|
||||
|
||||
TASK [Gathering Facts] *********************************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Créer le répertoire de données Portainer] ********************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Vérifier si Docker est installé] *****************************************
|
||||
fatal: [jump.point.home]: FAILED! => {"changed": false, "msg": "No package matching 'docker' is available"}
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
jump.point.home : ok=2 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T00:39:55.128714+00:00*
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
# ✅ Ad-hoc: docker ps
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `adhoc_35aee6696bec` |
|
||||
| **Nom** | Ad-hoc: docker ps |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | completed |
|
||||
| **Type** | Ad-hoc |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T01:52:24.119559+00:00 |
|
||||
| **Fin** | 2025-12-24T01:52:30.311593+00:00 |
|
||||
| **Durée** | 6.19s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
jump.point.home | CHANGED | rc=0 >>
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T01:52:30.332157+00:00*
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
# ❌ Playbook: Install_Container_Portainer
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `pb_88a9555b6fc5` |
|
||||
| **Nom** | Playbook: Install_Container_Portainer |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | failed |
|
||||
| **Type** | Manuel |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T01:52:59.217776+00:00 |
|
||||
| **Fin** | 2025-12-24T01:53:09.662891+00:00 |
|
||||
| **Durée** | 10.4s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
|
||||
PLAY [Déploiement de Portainer CE] *********************************************
|
||||
|
||||
TASK [Gathering Facts] *********************************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Créer le répertoire parent pour le dépôt Portainer] **********************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Cloner le dépôt Portainer] ***********************************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Exécuter le script d'initialisation Portainer] ***************************
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Exécuter le script de mise à jour Portainer] *****************************
|
||||
fatal: [jump.point.home]: FAILED! => {"changed": false, "cmd": ["bash", "./maj.sh"], "delta": null, "end": null, "msg": "Unable to change directory before execution: [Errno 2] No such file or directory: b'dev/git/outils/dockers/portainer'", "rc": null, "start": null, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
jump.point.home : ok=3 changed=2 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T01:53:09.671696+00:00*
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
# ✅ Playbook: Install_Container_Portainer
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `pb_39bbd6b654a0` |
|
||||
| **Nom** | Playbook: Install_Container_Portainer |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | completed |
|
||||
| **Type** | Manuel |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T02:06:00.567518+00:00 |
|
||||
| **Fin** | 2025-12-24T02:06:14.262809+00:00 |
|
||||
| **Durée** | 13.7s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
|
||||
PLAY [Déploiement de Portainer CE] *********************************************
|
||||
|
||||
TASK [Gathering Facts] *********************************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Créer le répertoire parent pour le dépôt Portainer] **********************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Cloner le dépôt Portainer] ***********************************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Exécuter le script d'initialisation Portainer] ***************************
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Exécuter le script de mise à jour Portainer] *****************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Vérifier que Portainer est en cours d'exécution] *************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Afficher le statut de Portainer] *****************************************
|
||||
ok: [jump.point.home] => {
|
||||
"msg": [
|
||||
"NAMES STATUS PORTS",
|
||||
"portainer Up Less than a second 0.0.0.0:8000->8000/tcp, [::]:8000->8000/tcp, 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp, 0.0.0.0:9443->9443/tcp, [::]:9443->9443/tcp"
|
||||
]
|
||||
}
|
||||
|
||||
TASK [Message de succès] *******************************************************
|
||||
ok: [jump.point.home] => {
|
||||
"msg": "Portainer CE a été déployé avec succès !\nLe script maj.sh a configuré automatiquement le firewall (UFW/Firewalld/iptables).\nInterface Web HTTPS : https://192.168.30.34:9443\nInterface Web HTTP : http://192.168.30.34:9000\nEdge Agent : 192.168.30.34:8000"
|
||||
}
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
jump.point.home : ok=7 changed=3 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T02:06:14.271101+00:00*
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
# ✅ Ad-hoc: docker ps
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `adhoc_810ecc73a34e` |
|
||||
| **Nom** | Ad-hoc: docker ps |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | completed |
|
||||
| **Type** | Ad-hoc |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T02:14:33.759387+00:00 |
|
||||
| **Fin** | 2025-12-24T02:14:42.198144+00:00 |
|
||||
| **Durée** | 8.44s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
jump.point.home | CHANGED | rc=0 >>
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
4810aaf8606b portainer/portainer-ce:latest "/portainer" 8 minutes ago Up 8 minutes 0.0.0.0:8000->8000/tcp, [::]:8000->8000/tcp, 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp, 0.0.0.0:9443->9443/tcp, [::]:9443->9443/tcp portainer
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T02:14:42.234195+00:00*
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
# ❌ Playbook: Install_Container_Portainer
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `pb_38c8f2a3693e` |
|
||||
| **Nom** | Playbook: Install_Container_Portainer |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | failed |
|
||||
| **Type** | Manuel |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T00:49:03.846658+00:00 |
|
||||
| **Fin** | 2025-12-24T02:23:10.132597+00:00 |
|
||||
| **Durée** | 5646.3s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
|
||||
PLAY [Déploiement de Portainer CE] *********************************************
|
||||
|
||||
TASK [Gathering Facts] *********************************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Créer le répertoire parent pour le dépôt Portainer] **********************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Cloner le dépôt Portainer] ***********************************************
|
||||
|
||||
```
|
||||
|
||||
## Erreurs
|
||||
|
||||
```
|
||||
[ERROR]: User interrupted execution
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T02:23:10.142189+00:00*
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
# ✅ Playbook: Remove_Container_Portainer
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `pb_bfb36e2a22bb` |
|
||||
| **Nom** | Playbook: Remove_Container_Portainer |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | completed |
|
||||
| **Type** | Manuel |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T02:28:48.400045+00:00 |
|
||||
| **Fin** | 2025-12-24T02:29:06.589219+00:00 |
|
||||
| **Durée** | 18.2s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
|
||||
PLAY [Suppression de Portainer CE] *********************************************
|
||||
|
||||
TASK [Gathering Facts] *********************************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Vérifier si le conteneur Portainer existe] *******************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Arrêter le conteneur Portainer s'il est en cours d'exécution] ************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Supprimer le conteneur Portainer] ****************************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Vérifier si l'image Portainer existe] ************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Supprimer l'image Portainer (optionnel)] *********************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Détecter si UFW est installé] ********************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Supprimer les règles UFW pour Portainer] *********************************
|
||||
skipping: [jump.point.home] => (item=8000)
|
||||
skipping: [jump.point.home] => (item=9000)
|
||||
skipping: [jump.point.home] => (item=9443)
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Recharger UFW] ***********************************************************
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Détecter si Firewalld est installé] **************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Supprimer les règles Firewalld pour Portainer] ***************************
|
||||
skipping: [jump.point.home] => (item=8000)
|
||||
skipping: [jump.point.home] => (item=9000)
|
||||
skipping: [jump.point.home] => (item=9443)
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Recharger Firewalld] *****************************************************
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Détecter si iptables est disponible] *************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Vérifier si la règle iptables existe pour Portainer] *********************
|
||||
ok: [jump.point.home] => (item=8000)
|
||||
ok: [jump.point.home] => (item=9000)
|
||||
ok: [jump.point.home] => (item=9443)
|
||||
|
||||
TASK [Supprimer les règles iptables pour Portainer] ****************************
|
||||
skipping: [jump.point.home] => (item={'changed': False, 'stdout': '', 'stderr': 'iptables: Bad rule (does a matching rule exist in that chain?).', 'rc': 1, 'cmd': ['iptables', '-C', 'INPUT', '-p', 'tcp', '--dport', '8000', '-j', 'DROP'], 'start': '2025-12-23 21:29:00.143068', 'end': '2025-12-23 21:29:00.146959', 'delta': '0:00:00.003891', 'failed': False, 'msg': 'non-zero return code', 'invocation': {'module_args': {'_raw_params': 'iptables -C INPUT -p tcp --dport 8000 -j DROP', '_uses_shell': False, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': [], 'stderr_lines': ['iptables: Bad rule (does a matching rule exist in that chain?).'], 'failed_when_result': False, 'item': 8000, 'ansible_loop_var': 'item'})
|
||||
skipping: [jump.point.home] => (item={'changed': False, 'stdout': '', 'stderr': 'iptables: Bad rule (does a matching rule exist in that chain?).', 'rc': 1, 'cmd': ['iptables', '-C', 'INPUT', '-p', 'tcp', '--dport', '9000', '-j', 'DROP'], 'start': '2025-12-23 21:29:00.810733', 'end': '2025-12-23 21:29:00.814511', 'delta': '0:00:00.003778', 'failed': False, 'msg': 'non-zero return code', 'invocation': {'module_args': {'_raw_params': 'iptables -C INPUT -p tcp --dport 9000 -j DROP', '_uses_shell': False, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': [], 'stderr_lines': ['iptables: Bad rule (does a matching rule exist in that chain?).'], 'failed_when_result': False, 'item': 9000, 'ansible_loop_var': 'item'})
|
||||
skipping: [jump.point.home] => (item={'changed': False, 'stdout': '', 'stderr': 'iptables: Bad rule (does a matching rule exist in that chain?).', 'rc': 1, 'cmd': ['iptables', '-C', 'INPUT', '-p', 'tcp', '--dport', '9443', '-j', 'DROP'], 'start': '2025-12-23 21:29:01.445419', 'end': '2025-12-23 21:29:01.449416', 'delta': '0:00:00.003997', 'failed': False, 'msg': 'non-zero return code', 'invocation': {'module_args': {'_raw_params': 'iptables -C INPUT -p tcp --dport 9443 -j DROP', '_uses_shell': False, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': [], 'stderr_lines': ['iptables: Bad rule (does a matching rule exist in that chain?).'], 'failed_when_result': False, 'item': 9443, 'ansible_loop_var': 'item'})
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Supprimer le répertoire du dépôt Git Portainer] **************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Supprimer le répertoire de données Portainer] ****************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Supprimer le répertoire parent s'il est vide] ****************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Vérifier que Portainer a été complètement supprimé] **********************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Message de confirmation de suppression] **********************************
|
||||
ok: [jump.point.home] => {
|
||||
"msg": "Portainer CE a été complètement supprimé !\n- Conteneur arrêté et supprimé\n- Règles firewall supprimées (UFW/Firewalld/iptables)\n- Répertoires de données supprimés\n- Dépôt Git supprimé\n[SUCCESS] Suppression réussie : Aucun conteneur Portainer trouvé\n"
|
||||
}
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
jump.point.home : ok=15 changed=4 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T02:29:06.609890+00:00*
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
# ✅ Ad-hoc: docker ps
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `adhoc_fe96c45b60c1` |
|
||||
| **Nom** | Ad-hoc: docker ps |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | completed |
|
||||
| **Type** | Ad-hoc |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T02:29:59.828784+00:00 |
|
||||
| **Fin** | 2025-12-24T02:30:05.263873+00:00 |
|
||||
| **Durée** | 5.44s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
jump.point.home | CHANGED | rc=0 >>
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T02:30:05.282655+00:00*
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
# ✅ Playbook: Install_Container_Portainer
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `pb_43b609465252` |
|
||||
| **Nom** | Playbook: Install_Container_Portainer |
|
||||
| **Cible** | `jump.point.home` |
|
||||
| **Statut** | completed |
|
||||
| **Type** | Manuel |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T02:31:49.269130+00:00 |
|
||||
| **Fin** | 2025-12-24T02:32:04.049399+00:00 |
|
||||
| **Durée** | 14.8s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
|
||||
PLAY [Déploiement de Portainer CE] *********************************************
|
||||
|
||||
TASK [Gathering Facts] *********************************************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Créer le répertoire parent pour le dépôt Portainer] **********************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Cloner le dépôt Portainer] ***********************************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Exécuter le script d'initialisation Portainer] ***************************
|
||||
skipping: [jump.point.home]
|
||||
|
||||
TASK [Exécuter le script de mise à jour Portainer] *****************************
|
||||
changed: [jump.point.home]
|
||||
|
||||
TASK [Vérifier que Portainer est en cours d'exécution] *************************
|
||||
ok: [jump.point.home]
|
||||
|
||||
TASK [Afficher le statut de Portainer] *****************************************
|
||||
ok: [jump.point.home] => {
|
||||
"msg": [
|
||||
"NAMES STATUS PORTS",
|
||||
"portainer Up Less than a second 0.0.0.0:8000->8000/tcp, [::]:8000->8000/tcp, 0.0.0.0:9000->9000/tcp, [::]:9000->9000/tcp, 0.0.0.0:9443->9443/tcp, [::]:9443->9443/tcp"
|
||||
]
|
||||
}
|
||||
|
||||
TASK [Message de succès] *******************************************************
|
||||
ok: [jump.point.home] => {
|
||||
"msg": "Portainer CE a été déployé avec succès !\nLe script maj.sh a configuré automatiquement le firewall (UFW/Firewalld/iptables).\nInterface Web HTTPS : https://192.168.30.34:9443\nInterface Web HTTP : http://192.168.30.34:9000\nEdge Agent : 192.168.30.34:8000"
|
||||
}
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
jump.point.home : ok=7 changed=3 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T02:32:04.060348+00:00*
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
# ✅ Playbook: Health Check
|
||||
|
||||
## Informations
|
||||
|
||||
| Propriété | Valeur |
|
||||
|-----------|--------|
|
||||
| **ID** | `pb_37fff0d8fc0a` |
|
||||
| **Nom** | Playbook: Health Check |
|
||||
| **Cible** | `role_sbc` |
|
||||
| **Statut** | completed |
|
||||
| **Type** | Manuel |
|
||||
| **Progression** | 100% |
|
||||
| **Début** | 2025-12-24T03:08:37.461767+00:00 |
|
||||
| **Fin** | 2025-12-24T03:08:56.314886+00:00 |
|
||||
| **Durée** | 18.7s |
|
||||
|
||||
## Sortie
|
||||
|
||||
```
|
||||
Using /mnt/c/dev/git/python/homelab-automation-api-v2/ansible/ansible.cfg as config file
|
||||
|
||||
PLAY [Health check on target host] *********************************************
|
||||
|
||||
TASK [Check if host is reachable (ping)] ***************************************
|
||||
ok: [raspi.8gb.home] => {"changed": false, "ping": "pong"}
|
||||
ok: [raspi.4gb.home] => {"changed": false, "ping": "pong"}
|
||||
ok: [orangepi.pc.home] => {"changed": false, "ping": "pong"}
|
||||
|
||||
TASK [Gather minimal facts] ****************************************************
|
||||
ok: [raspi.8gb.home]
|
||||
ok: [raspi.4gb.home]
|
||||
ok: [orangepi.pc.home]
|
||||
|
||||
TASK [Get system uptime] *******************************************************
|
||||
ok: [raspi.8gb.home] => {"changed": false, "cmd": ["uptime"], "delta": "0:00:00.008447", "end": "2025-12-23 22:08:48.821279", "msg": "", "rc": 0, "start": "2025-12-23 22:08:48.812832", "stderr": "", "stderr_lines": [], "stdout": " 22:08:48 up 200 days, 13:41, 1 user, load average: 0.16, 0.19, 0.21", "stdout_lines": [" 22:08:48 up 200 days, 13:41, 1 user, load average: 0.16, 0.19, 0.21"]}
|
||||
ok: [raspi.4gb.home] => {"changed": false, "cmd": ["uptime"], "delta": "0:00:00.009082", "end": "2025-12-23 22:08:48.882333", "msg": "", "rc": 0, "start": "2025-12-23 22:08:48.873251", "stderr": "", "stderr_lines": [], "stdout": " 22:08:48 up 200 days, 13:41, 1 user, load average: 0.22, 0.28, 0.27", "stdout_lines": [" 22:08:48 up 200 days, 13:41, 1 user, load average: 0.22, 0.28, 0.27"]}
|
||||
ok: [orangepi.pc.home] => {"changed": false, "cmd": ["uptime"], "delta": "0:00:00.019966", "end": "2025-12-23 22:08:49.545885", "msg": "", "rc": 0, "start": "2025-12-23 22:08:49.525919", "stderr": "", "stderr_lines": [], "stdout": " 22:08:49 up 21 days, 11:35, 1 user, load average: 0.52, 0.32, 0.28", "stdout_lines": [" 22:08:49 up 21 days, 11:35, 1 user, load average: 0.52, 0.32, 0.28"]}
|
||||
|
||||
TASK [Get disk usage] **********************************************************
|
||||
ok: [raspi.8gb.home] => {"changed": false, "cmd": "df -h / | tail -1 | awk '{print $5}'", "delta": "0:00:00.019262", "end": "2025-12-23 22:08:50.377875", "msg": "", "rc": 0, "start": "2025-12-23 22:08:50.358613", "stderr": "", "stderr_lines": [], "stdout": "3%", "stdout_lines": ["3%"]}
|
||||
ok: [raspi.4gb.home] => {"changed": false, "cmd": "df -h / | tail -1 | awk '{print $5}'", "delta": "0:00:00.011492", "end": "2025-12-23 22:08:50.404543", "msg": "", "rc": 0, "start": "2025-12-23 22:08:50.393051", "stderr": "", "stderr_lines": [], "stdout": "6%", "stdout_lines": ["6%"]}
|
||||
ok: [orangepi.pc.home] => {"changed": false, "cmd": "df -h / | tail -1 | awk '{print $5}'", "delta": "0:00:00.025813", "end": "2025-12-23 22:08:51.083122", "msg": "", "rc": 0, "start": "2025-12-23 22:08:51.057309", "stderr": "", "stderr_lines": [], "stdout": "21%", "stdout_lines": ["21%"]}
|
||||
|
||||
TASK [Get memory usage (Linux)] ************************************************
|
||||
ok: [raspi.8gb.home] => {"changed": false, "cmd": "if command -v free >/dev/null 2>&1; then\n free -m | grep Mem | awk '{printf \"%.1f%%\", $3/$2 * 100}'\nelse\n # Fallback for systems without free command\n cat /proc/meminfo | awk '/MemTotal/{total=$2} /MemAvailable/{avail=$2} END{printf \"%.1f%%\", (total-avail)/total*100}'\nfi\n", "delta": "0:00:00.010688", "end": "2025-12-23 22:08:51.901744", "msg": "", "rc": 0, "start": "2025-12-23 22:08:51.891056", "stderr": "", "stderr_lines": [], "stdout": "7.0%", "stdout_lines": ["7.0%"]}
|
||||
ok: [raspi.4gb.home] => {"changed": false, "cmd": "if command -v free >/dev/null 2>&1; then\n free -m | grep Mem | awk '{printf \"%.1f%%\", $3/$2 * 100}'\nelse\n # Fallback for systems without free command\n cat /proc/meminfo | awk '/MemTotal/{total=$2} /MemAvailable/{avail=$2} END{printf \"%.1f%%\", (total-avail)/total*100}'\nfi\n", "delta": "0:00:00.011853", "end": "2025-12-23 22:08:51.966290", "msg": "", "rc": 0, "start": "2025-12-23 22:08:51.954437", "stderr": "", "stderr_lines": [], "stdout": "13.1%", "stdout_lines": ["13.1%"]}
|
||||
ok: [orangepi.pc.home] => {"changed": false, "cmd": "if command -v free >/dev/null 2>&1; then\n free -m | grep Mem | awk '{printf \"%.1f%%\", $3/$2 * 100}'\nelse\n # Fallback for systems without free command\n cat /proc/meminfo | awk '/MemTotal/{total=$2} /MemAvailable/{avail=$2} END{printf \"%.1f%%\", (total-avail)/total*100}'\nfi\n", "delta": "0:00:00.026466", "end": "2025-12-23 22:08:52.636830", "msg": "", "rc": 0, "start": "2025-12-23 22:08:52.610364", "stderr": "", "stderr_lines": [], "stdout": "20.1%", "stdout_lines": ["20.1%"]}
|
||||
|
||||
TASK [Get CPU temperature (ARM/SBC)] *******************************************
|
||||
ok: [raspi.8gb.home] => {"changed": false, "cmd": "if [ -f /sys/class/thermal/thermal_zone0/temp ]; then\n temp=$(cat /sys/class/thermal/thermal_zone0/temp)\n # Use awk instead of bc for better compatibility\n echo \"${temp}\" | awk '{printf \"%.1f°C\", $1/1000}'\nelse\n echo \"N/A\"\nfi\n", "delta": "0:00:00.011710", "end": "2025-12-23 22:08:53.447820", "msg": "", "rc": 0, "start": "2025-12-23 22:08:53.436110", "stderr": "", "stderr_lines": [], "stdout": "30.7°C", "stdout_lines": ["30.7°C"]}
|
||||
ok: [raspi.4gb.home] => {"changed": false, "cmd": "if [ -f /sys/class/thermal/thermal_zone0/temp ]; then\n temp=$(cat /sys/class/thermal/thermal_zone0/temp)\n # Use awk instead of bc for better compatibility\n echo \"${temp}\" | awk '{printf \"%.1f°C\", $1/1000}'\nelse\n echo \"N/A\"\nfi\n", "delta": "0:00:00.013076", "end": "2025-12-23 22:08:53.485620", "msg": "", "rc": 0, "start": "2025-12-23 22:08:53.472544", "stderr": "", "stderr_lines": [], "stdout": "36.5°C", "stdout_lines": ["36.5°C"]}
|
||||
ok: [orangepi.pc.home] => {"changed": false, "cmd": "if [ -f /sys/class/thermal/thermal_zone0/temp ]; then\n temp=$(cat /sys/class/thermal/thermal_zone0/temp)\n # Use awk instead of bc for better compatibility\n echo \"${temp}\" | awk '{printf \"%.1f°C\", $1/1000}'\nelse\n echo \"N/A\"\nfi\n", "delta": "0:00:00.029255", "end": "2025-12-23 22:08:54.180844", "msg": "", "rc": 0, "start": "2025-12-23 22:08:54.151589", "stderr": "", "stderr_lines": [], "stdout": "36.0°C", "stdout_lines": ["36.0°C"]}
|
||||
|
||||
TASK [Get CPU load] ************************************************************
|
||||
ok: [raspi.8gb.home] => {"changed": false, "cmd": "if [ -f /proc/loadavg ]; then\n cat /proc/loadavg | awk '{print $1}'\nelse\n uptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}' | tr -d ' '\nfi\n", "delta": "0:00:00.010275", "end": "2025-12-23 22:08:55.005654", "msg": "", "rc": 0, "start": "2025-12-23 22:08:54.995379", "stderr": "", "stderr_lines": [], "stdout": "0.15", "stdout_lines": ["0.15"]}
|
||||
ok: [raspi.4gb.home] => {"changed": false, "cmd": "if [ -f /proc/loadavg ]; then\n cat /proc/loadavg | awk '{print $1}'\nelse\n uptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}' | tr -d ' '\nfi\n", "delta": "0:00:00.010970", "end": "2025-12-23 22:08:55.030483", "msg": "", "rc": 0, "start": "2025-12-23 22:08:55.019513", "stderr": "", "stderr_lines": [], "stdout": "0.36", "stdout_lines": ["0.36"]}
|
||||
ok: [orangepi.pc.home] => {"changed": false, "cmd": "if [ -f /proc/loadavg ]; then\n cat /proc/loadavg | awk '{print $1}'\nelse\n uptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}' | tr -d ' '\nfi\n", "delta": "0:00:00.024618", "end": "2025-12-23 22:08:55.722161", "msg": "", "rc": 0, "start": "2025-12-23 22:08:55.697543", "stderr": "", "stderr_lines": [], "stdout": "0.56", "stdout_lines": ["0.56"]}
|
||||
|
||||
TASK [Display health status] ***************************************************
|
||||
ok: [orangepi.pc.home] => {
|
||||
"msg": "═══════════════════════════════════════\nHost: orangepi.pc.home\nStatus: OK\n═══════════════════════════════════════\nUptime: 22:08:49 up 21 days, 11:35, 1 user, load average: 0.52, 0.32, 0.28\nDisk Usage: 21%\nMemory Usage: 20.1%\nCPU Load: 0.56\nCPU Temp: 36.0°C\n═══════════════════════════════════════\n"
|
||||
}
|
||||
ok: [raspi.4gb.home] => {
|
||||
"msg": "═══════════════════════════════════════\nHost: raspi.4gb.home\nStatus: OK\n═══════════════════════════════════════\nUptime: 22:08:48 up 200 days, 13:41, 1 user, load average: 0.22, 0.28, 0.27\nDisk Usage: 6%\nMemory Usage: 13.1%\nCPU Load: 0.36\nCPU Temp: 36.5°C\n═══════════════════════════════════════\n"
|
||||
}
|
||||
ok: [raspi.8gb.home] => {
|
||||
"msg": "═══════════════════════════════════════\nHost: raspi.8gb.home\nStatus: OK\n═══════════════════════════════════════\nUptime: 22:08:48 up 200 days, 13:41, 1 user, load average: 0.16, 0.19, 0.21\nDisk Usage: 3%\nMemory Usage: 7.0%\nCPU Load: 0.15\nCPU Temp: 30.7°C\n═══════════════════════════════════════\n"
|
||||
}
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
orangepi.pc.home : ok=8 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
|
||||
raspi.4gb.home : ok=8 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
|
||||
raspi.8gb.home : ok=8 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
*Généré automatiquement par Homelab Automation Dashboard*
|
||||
*Date: 2025-12-24T03:08:56.323146+00:00*
|
||||
Reference in New Issue
Block a user