test: ssh in root
Some checks failed
Provision & Configure / Terraform Apply (push) Failing after 35s

This commit is contained in:
Ditmar Visser
2025-06-11 14:37:04 +00:00
parent fbe9f5de6f
commit a05dcc5354
2 changed files with 4 additions and 5 deletions

View File

@ -33,7 +33,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- run: echo "Home is $HOME"
# Terraform
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
@ -68,9 +67,9 @@ jobs:
# mkdir -p ~/.ssh
# printf "%s" "${{ secrets.AZURE_SSH_PRIVATE_KEY }}" > ~/.ssh/azure
# chmod 600 ~/.ssh/azure
mkdir -p ~/.ssh
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > ~/.ssh/skylab
chmod 600 ~/.ssh/skylab
# mkdir -p ~/.ssh
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > /skylab
chmod 600 skylab
- 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.pub"
esxi_private_key_file = "/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"