Removed registry login

This commit is contained in:
2023-04-07 23:12:31 +02:00
committed by H4CK3R-01
parent 519d86bb40
commit d6a61a42e4
3 changed files with 3 additions and 25 deletions

View File

@@ -52,16 +52,6 @@ variable "cloudflare_token" {
sensitive = true
}
variable "registry_username" {
type = string
sensitive = true
}
variable "registry_password" {
type = string
sensitive = true
}
resource "random_string" "lower" {
length = 16
upper = false
@@ -242,6 +232,6 @@ resource "azurerm_linux_virtual_machine" "example" {
# Ansible
provisioner "local-exec" {
command = "ansible-playbook --ssh-common-args='-o StrictHostKeyChecking=no' --extra-vars CERTBOT_EMAIL='${var.certbot_email}' --extra-vars REGISTRY_USERNAME='${var.registry_username}' --extra-vars REGISTRY_PASSWORD='${var.registry_password}' --extra-vars AZURE_KEY='${azurerm_cognitive_account.example.primary_access_key}' --extra-vars AZURE_LOCATION='${var.azure_location_ca}' --extra-vars DATABASE_URL='${azurerm_cosmosdb_account.example.connection_strings.0}' -i adminuser@'${azurerm_public_ip.example.ip_address}', ../ansible/provision.yml"
command = "ansible-playbook --ssh-common-args='-o StrictHostKeyChecking=no' --extra-vars CERTBOT_EMAIL='${var.certbot_email}' --extra-vars AZURE_KEY='${azurerm_cognitive_account.example.primary_access_key}' --extra-vars AZURE_LOCATION='${var.azure_location_ca}' --extra-vars DATABASE_URL='${azurerm_cosmosdb_account.example.connection_strings.0}' -i adminuser@'${azurerm_public_ip.example.ip_address}', ../ansible/provision.yml"
}
}

View File

@@ -5,6 +5,4 @@ azure_location_ca = "germanywestcentral"
azure_location = "westeurope"
certbot_email = ""
zone_id = ""
cloudflare_token = ""
registry_username = ""
registry_password = ""
cloudflare_token = ""