change
Some checks failed
Ansible Minecraft Server CI/CD / lint (push) Failing after 12s
Ansible Minecraft Server CI/CD / test (push) Has been skipped
Ansible Minecraft Server CI/CD / deploy (push) Has been skipped

This commit is contained in:
2025-08-27 13:15:16 +02:00
parent e67cc93516
commit 7ce8cf1662
13 changed files with 234 additions and 95 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Test de connexion aux serveurs
echo "=== Test de connexion aux serveurs ==="
# Test staging
echo "Test de connexion à staging..."
ansible -i inventories/staging/hosts.yml minecraft_servers -m ping
# Test production
echo "Test de connexion à production..."
ansible -i inventories/production/hosts.yml minecraft_servers -m ping
echo ""
echo "=== Test de privilèges sudo ==="
# Test sudo staging
echo "Test sudo sur staging..."
ansible -i inventories/staging/hosts.yml minecraft_servers -b -m command -a "whoami"
# Test sudo production
echo "Test sudo sur production..."
ansible -i inventories/production/hosts.yml minecraft_servers -b -m command -a "whoami"