summaryrefslogtreecommitdiff
path: root/final
diff options
context:
space:
mode:
Diffstat (limited to 'final')
-rw-r--r--final/debian.tf8
-rw-r--r--final/rocky.tf8
2 files changed, 10 insertions, 6 deletions
diff --git a/final/debian.tf b/final/debian.tf
index ebc528e..c7dfe51 100644
--- a/final/debian.tf
+++ b/final/debian.tf
@@ -9,9 +9,11 @@ resource "incus_instance" "debian" {
command = "./local_script ${self.ipv4_address} ${self.name}"
}
connection {
- type = "ssh"
- host = self.ipv4_address
- user = "ansible"
+ type = "ssh"
+ host = self.ipv4_address
+ user = "ansible"
+ private_key = file("~/.ssh/id_rsa")
+
}
provisioner "remote-exec" {
inline = [
diff --git a/final/rocky.tf b/final/rocky.tf
index 2498fe3..5b81b3f 100644
--- a/final/rocky.tf
+++ b/final/rocky.tf
@@ -9,9 +9,11 @@ resource "incus_instance" "rocky" {
command = "./local_script ${self.ipv4_address} ${self.name}"
}
connection {
- type = "ssh"
- host = self.ipv4_address
- user = "ansible"
+ type = "ssh"
+ host = self.ipv4_address
+ user = "ansible"
+ private_key = file("~/.ssh/id_rsa")
+
}
provisioner "remote-exec" {
inline = [