diff --git a/provider.tf b/provider.tf index 8da8d2a..b890e50 100644 --- a/provider.tf +++ b/provider.tf @@ -29,11 +29,9 @@ provider "dns" { # Configure the Docker Provider provider "docker" { - host = "tcp://192.168.2.170:2376" + host = "ssh://ansible@wbyc-srv-docker01.bsdserver.lan:22" - # Use cert_path only if certificates exist (local development) - # For CI/CD, use DOCKER_HOST environment variable instead - cert_path = fileexists(pathexpand("~/.docker/ca.pem")) ? pathexpand("~/.docker") : null + ssh_opts = ["-i", "${path.module}/.ssh/id_rsa", "-o", "StrictHostKeyChecking=no"] } # Configure the Vault Provider