chore: azure:vm:config require ssh key path This allows the user to specify a custom SSH KEY path
diff --git a/TaskfileAzure.yml b/TaskfileAzure.yml index 6cef14d..625c09a 100644 --- a/TaskfileAzure.yml +++ b/TaskfileAzure.yml
@@ -3,7 +3,7 @@ tasks: check: - - az account show + - az account show cluster:config: - > @@ -33,9 +33,9 @@ --vm="{{.VM_TYPE}}" --disk="200" --image="{{.IMAGE}}" - --key=$HOME/.ssh/id_rsa.pub + --key={{.SSH_KEY}} requires: - vars: [ VM_TYPE,REGION,IMAGE ] + vars: [ VM_TYPE,REGION,IMAGE,SSH_KEY ] vm:create: cmds: @@ -46,7 +46,7 @@ IMAGE: "{{.IMAGE}}" - ops cloud azcloud vm-create {{.NAME}} - ops cloud azcloud vm-getip {{.NAME}} >_ip - - ops cloud {{.TYPE}} create SERVER=$(cat _ip) USERNAME=ubuntu + - ops cloud {{.TYPE}} create $(cat _ip) ubuntu requires: vars: [ NAME, TYPE, VM_TYPE, REGION, IMAGE ]