ssh
This commit is contained in:
parent
baf6c7e177
commit
187b738f2d
@ -8,6 +8,20 @@ ENV="${ENV:-staging}" # Nom de l'environnement (stagin
|
||||
ENV_BR="${ENV_BR:-test_feature}" # Branche des fichiers d'env
|
||||
PLAYBOOK_FILE="${PLAYBOOK_FILE:-base.yaml}" # Nom du fichier playbook dans /playbooks/
|
||||
|
||||
# Setup SSH and known_hosts
|
||||
echo "[INFO] Setting up SSH environment..."
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
|
||||
# Add git.felcloud.io to known_hosts to avoid interactive prompt
|
||||
echo "[INFO] Adding git.felcloud.io to known_hosts..."
|
||||
ssh-keyscan git.felcloud.io >> ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
|
||||
# Debug SSH keys
|
||||
echo "[DEBUG] Available SSH keys:"
|
||||
ls -la ~/.ssh
|
||||
|
||||
# 1/Cloner les dépôts nécessaires:
|
||||
echo "[INFO] Cloning repositories..."
|
||||
git clone git@git.felcloud.io:felcloud/ansible_core_init_ansible.git
|
||||
|
Loading…
Reference in New Issue
Block a user