test: ssh in root
Some checks failed
Provision & Configure / Terraform Apply (push) Failing after 35s
Some checks failed
Provision & Configure / Terraform Apply (push) Failing after 35s
This commit is contained in:
@ -33,7 +33,6 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: echo "Home is $HOME"
|
|
||||||
# Terraform
|
# Terraform
|
||||||
- name: Set up Terraform
|
- name: Set up Terraform
|
||||||
uses: hashicorp/setup-terraform@v3
|
uses: hashicorp/setup-terraform@v3
|
||||||
@ -68,9 +67,9 @@ jobs:
|
|||||||
# mkdir -p ~/.ssh
|
# mkdir -p ~/.ssh
|
||||||
# printf "%s" "${{ secrets.AZURE_SSH_PRIVATE_KEY }}" > ~/.ssh/azure
|
# printf "%s" "${{ secrets.AZURE_SSH_PRIVATE_KEY }}" > ~/.ssh/azure
|
||||||
# chmod 600 ~/.ssh/azure
|
# chmod 600 ~/.ssh/azure
|
||||||
mkdir -p ~/.ssh
|
# mkdir -p ~/.ssh
|
||||||
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > ~/.ssh/skylab
|
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > /skylab
|
||||||
chmod 600 ~/.ssh/skylab
|
chmod 600 skylab
|
||||||
|
|
||||||
- name: Install Ansible
|
- name: Install Ansible
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -139,7 +139,7 @@ locals {
|
|||||||
inventory = templatefile("${path.module}/ansible-inventory.tmpl", {
|
inventory = templatefile("${path.module}/ansible-inventory.tmpl", {
|
||||||
esxi_name = esxi_guest.week-6.guest_name
|
esxi_name = esxi_guest.week-6.guest_name
|
||||||
esxi_ip = esxi_guest.week-6.ip_address
|
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_name = azurerm_linux_virtual_machine.week-6.name
|
||||||
# azure_ip = azurerm_linux_virtual_machine.week-6.public_ip_address
|
# azure_ip = azurerm_linux_virtual_machine.week-6.public_ip_address
|
||||||
# azure_private_key_file = "~/.ssh/azure"
|
# azure_private_key_file = "~/.ssh/azure"
|
||||||
|
Reference in New Issue
Block a user