From 97ab34737da7743966848fd55726dee18f29881c Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 18 Feb 2022 16:37:15 +0100 Subject: [PATCH] removed debugging and added ansible to pipeline --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0b1e7c9..553254f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: HCLOUD_SSH_KEY_ID: from_secret: serverctl_hcloud_ssh_key_id commands: - - apk --update add curl zip + - apk --update add curl zip ansible python3 - cd infrastructure && ./unzip-ssh-keys.sh "$SSH_ZIP_KEY" && cd .. - curl --silent --output terraform.zip "https://releases.hashicorp.com/terraform/1.1.6/terraform_1.1.6_linux_amd64.zip" - unzip terraform.zip ; rm -f terraform.zip; chmod +x terraform @@ -25,5 +25,4 @@ steps: - cd infrastructure/create-resources - terraform init -backend-config="access_key=$ACCESS_KEY" -backend-config="secret_key=$SECRET_KEY" - terraform validate - - pwd - terraform apply -auto-approve -var "hcloud_token=$HCLOUD_TOKEN" -var "pvt_key=../ssh_keys/id_ed25519" -var "pub_key=../ssh_keys/id_ed25519.pub" -var "hcloud_serverctl_ssh_key_id=$HCLOUD_SSH_KEY_ID"