Feature/tailscale access (#1)

* AWS_R53_ENABLED: Delete unused variable

* Add Tailscale Feature
- Removed R53 configuration
- Updated Ansible playbook to handle empty variables
- Updated Ansible playbook to use variables file
- Updated README to include updated requirements

---------

Co-authored-by: Damien A <sepales.pret0h@icloud.com>
This commit is contained in:
Damien A
2024-02-25 17:25:34 +01:00
committed by GitHub
parent a4170247b3
commit 315910772c
9 changed files with 54 additions and 85 deletions

View File

@@ -20,12 +20,6 @@ resource "aws_security_group" "netlab_sg" {
protocol = "tcp"
cidr_blocks = [var.AWS_LOCAL_IP]
}
ingress {
from_port = 50080
to_port = 50080
protocol = "tcp"
cidr_blocks = [var.AWS_LOCAL_IP]
}
}
resource "aws_instance" "containerlab_host" {
@@ -51,9 +45,11 @@ resource "aws_instance" "containerlab_host" {
provisioner "local-exec" {
command = <<EOT
sleep 20
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u admin -i ../ansible/inventory --private-key ${var.AWS_KEY_LOCATION} ../ansible/install_containerlab.yml \
${var.GITHUB_REPO_URL != "" ? "--extra-vars repo_git_url=${var.GITHUB_REPO_URL}" : ""} \
${var.LOCAL_DIR_PATH != "" ? "--extra-vars local_dir_path=${var.LOCAL_DIR_PATH}" : ""}
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook \
-u admin \
-i ../ansible/inventory \
--private-key ${var.AWS_KEY_LOCATION} \
../ansible/install_containerlab.yml
EOT
}
}