fix: ssh key to pub
Some checks failed
Provision & Configure / Terraform Apply (push) Failing after 1m3s

This commit is contained in:
Ditmar Visser
2025-06-11 14:24:18 +00:00
parent a0bb1c35c5
commit ba43c7de4c
2 changed files with 3 additions and 4 deletions

View File

@@ -68,9 +68,8 @@ jobs:
# printf "%s" "${{ secrets.AZURE_SSH_PRIVATE_KEY }}" > ~/.ssh/azure
# chmod 600 ~/.ssh/azure
mkdir -p ~/.ssh
echo "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}"
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > ~/.ssh/skylab
chmod 600 ~/.ssh/skylab
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > ~/.ssh/skylab.pub
chmod 600 ~/.ssh/skylab.pub
- name: Install Ansible
shell: bash

View File

@@ -139,7 +139,7 @@ locals {
inventory = templatefile("${path.module}/ansible-inventory.tmpl", {
esxi_name = esxi_guest.week-6.guest_name
esxi_ip = esxi_guest.week-6.ip_address
esxi_private_key_file = "~/.ssh/skylab"
esxi_private_key_file = "~/.ssh/skylab.pub"
# azure_name = azurerm_linux_virtual_machine.week-6.name
# azure_ip = azurerm_linux_virtual_machine.week-6.public_ip_address
# azure_private_key_file = "~/.ssh/azure"