GCE. replace underscores (#698)

This commit is contained in:
Jack Ivanov 2017-10-18 22:23:57 +02:00 committed by Dan Guido
parent ee7264f26e
commit 3c55cd15a4
2 changed files with 2 additions and 1 deletions

2
algo
View file

@ -384,7 +384,7 @@ Please choose the number of your zone. Press enter for default (#14) zone.
esac
ROLES="gce vpn cloud"
EXTRA_VARS="credentials_file=$credentials_file server_name=$server_name ssh_public_key=$ssh_public_key zone=$zone max_mss=1316"
EXTRA_VARS="credentials_file=$credentials_file gce_server_name=$server_name ssh_public_key=$ssh_public_key zone=$zone max_mss=1316"
}
non_cloud () {

View file

@ -9,6 +9,7 @@
- set_fact:
service_account_email: "{{ credentials_file_lookup.client_email | default(lookup('env','GCE_EMAIL')) }}"
project_id: "{{ credentials_file_lookup.project_id | default(lookup('env','GCE_PROJECT')) }}"
server_name: "{{ gce_server_name | replace('_', '-') }}"
- name: Network configured
gce_net: