If you get stuck, delete the terraform.tfstate file, and manually destroy the resources that were created.
export OCEAN_TOKEN="0f97..."
export OCEAN_SSH_KEY="greg..."
export TF_LOG=ERROR
cd ~/projects/infrastructure/
terraform init
terraform plan -var "do_token=${OCEAN_TOKEN}" -var "pvt_key=$HOME/.ssh/id_rsa" -var "ocean_ssh_key=${OCEAN_SSH_KEY}"
terraform apply -var "do_token=${OCEAN_TOKEN}" -var "pvt_key=$HOME/.ssh/id_rsa" -var "ocean_ssh_key=${OCEAN_SSH_KEY}" --auto-approve
terraform show terraform.tfstate
terraform plan -destroy -out=terraform.tfplan -var "do_token=${OCEAN_TOKEN}" -var "pvt_key=$HOME/.ssh/id_rsa" -var "ocean_ssh_key=${OCEAN_SSH_KEY}"
terraform apply terraform.tfplan
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $OCEAN_TOKEN" "https://api.digitalocean.com/v2/droplets?page=1&per_page=1"
ansible -i ./inventory -u root all -m ping
ansible -i ./inventory -u root all -a "/bin/echo hello"
ansible-playbook -i ./inventory basic.yml -f 10