Removed registry login
This commit is contained in:
parent
519d86bb40
commit
d6a61a42e4
@ -28,12 +28,6 @@
|
||||
ansible.builtin.pip:
|
||||
name: docker-compose
|
||||
|
||||
- name: Log into registry
|
||||
docker_login:
|
||||
registry: registry.flokaiser.com
|
||||
username: "{{ REGISTRY_USERNAME }}"
|
||||
password: "{{ REGISTRY_PASSWORD }}"
|
||||
|
||||
- name: clone repository
|
||||
ansible.builtin.git:
|
||||
repo: https://git.flokaiser.com/DHBW/Cloud_Computing_II.git
|
||||
@ -52,8 +46,4 @@
|
||||
AZURE_KEY: "{{ AZURE_KEY }}"
|
||||
AZURE_LOCATION: "{{ AZURE_LOCATION }}"
|
||||
AZURE_ENDPOINT: "https://api.cognitive.microsofttranslator.com"
|
||||
ENV: "dev"
|
||||
|
||||
- name: Log out of DockerHub
|
||||
docker_login:
|
||||
state: absent
|
||||
ENV: "dev"
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,4 @@ azure_location_ca = "germanywestcentral"
|
||||
azure_location = "westeurope"
|
||||
certbot_email = ""
|
||||
zone_id = ""
|
||||
cloudflare_token = ""
|
||||
registry_username = ""
|
||||
registry_password = ""
|
||||
cloudflare_token = ""
|
Loading…
Reference in New Issue
Block a user