some fixes

This commit is contained in:
Jack Ivanov 2016-12-15 00:21:44 +03:00
parent 1d07200c74
commit 90cc5fa1f7
2 changed files with 1 additions and 18 deletions

17
algo
View File

@ -87,10 +87,6 @@ Enter your azure subscription_id (https://docs.ansible.com/ansible/guide_azure.h
You can skip this step if you want to use your defaults credentials from ~/.azure/credentials You can skip this step if you want to use your defaults credentials from ~/.azure/credentials
[...]: " -rs azure_subscription_id [...]: " -rs azure_subscription_id
read -p "
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key
ssh_public_key=${ssh_public_key:-$HOME/.ssh/id_rsa.pub}
read -p " read -p "
Name the vpn server: Name the vpn server:
@ -143,10 +139,6 @@ digitalocean () {
Enter your API token (https://cloud.digitalocean.com/settings/api/tokens): Enter your API token (https://cloud.digitalocean.com/settings/api/tokens):
: " -rs do_access_token : " -rs do_access_token
read -p "
Enter an existing SSH key name (https://cloud.digitalocean.com/settings/security):
: " -r do_ssh_name
read -p " read -p "
Name the vpn server: Name the vpn server:
[algo.local]: " -r do_server_name [algo.local]: " -r do_server_name
@ -200,11 +192,6 @@ Enter your aws_secret_key (http://docs.aws.amazon.com/general/latest/gr/managing
Note: Make sure to use either your root key (recommended) or an IAM user with an acceptable policy attached Note: Make sure to use either your root key (recommended) or an IAM user with an acceptable policy attached
[ABCD...]: " -rs aws_secret_key [ABCD...]: " -rs aws_secret_key
read -p "
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key
ssh_public_key=${ssh_public_key:-$HOME/.ssh/id_rsa.pub}
read -p " read -p "
Name the vpn server: Name the vpn server:
[algo]: " -r aws_server_name [algo]: " -r aws_server_name
@ -254,10 +241,6 @@ gce () {
Enter the local path to your credentials JSON file (https://support.google.com/cloud/answer/6158849?hl=en&ref_topic=6262490#serviceaccounts): Enter the local path to your credentials JSON file (https://support.google.com/cloud/answer/6158849?hl=en&ref_topic=6262490#serviceaccounts):
: " -r credentials_file : " -r credentials_file
read -p "
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key
ssh_public_key=${ssh_public_key:-$HOME/.ssh/id_rsa.pub}
read -p " read -p "
Name the vpn server: Name the vpn server:
[algo]: " -r server_name [algo]: " -r server_name

View File

@ -39,7 +39,7 @@
digital_ocean: digital_ocean:
state: present state: present
command: ssh command: ssh
name: "{{ SSH_keys.comment }}" ssh_pub_key: "{{ public_key }}"
api_token: "{{ do_access_token }}" api_token: "{{ do_access_token }}"
register: do_ssh_key register: do_ssh_key