fix: ssh key to pub
Some checks failed
Provision & Configure / Terraform Apply (push) Failing after 1m3s
Some checks failed
Provision & Configure / Terraform Apply (push) Failing after 1m3s
This commit is contained in:
@@ -68,9 +68,8 @@ jobs:
|
|||||||
# 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
|
||||||
echo "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}"
|
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > ~/.ssh/skylab.pub
|
||||||
printf "%s" "${{ secrets.SKYLAB_SSH_PRIVATE_KEY }}" > ~/.ssh/skylab
|
chmod 600 ~/.ssh/skylab.pub
|
||||||
chmod 600 ~/.ssh/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"
|
esxi_private_key_file = "~/.ssh/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