ci/cd vlans_rsa ansible
Some checks failed
Deploy VM and App / terraform-ansible-deploy (push) Failing after 1m31s

This commit is contained in:
CC
2026-05-21 17:56:04 +01:00
parent 3c7a22032a
commit 8518bd6064

View File

@@ -51,8 +51,8 @@ jobs:
- name: Set up SSH - name: Set up SSH
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
printf '%s\n' "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_rsa echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/vlans_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/vlans_rsa
cat > ~/.ssh/config <<'EOF' cat > ~/.ssh/config <<'EOF'
Host * Host *
StrictHostKeyChecking no StrictHostKeyChecking no
@@ -70,7 +70,7 @@ jobs:
- name: Run playbook - name: Run playbook
run: | run: |
ansible-playbook ansible/playbooks/docker_copy.yml -i ansible/inventory/inventory.yml -u cloud --private-key ~/.ssh/id_rsa ansible-playbook ansible/playbooks/docker_copy.yml -i ansible/inventory/inventory.yml -u cloud --private-key ~/.ssh/vlans_rsa
- name: Configure Git - name: Configure Git
run: | run: |