Add default server value (localhost) for the local installation

Delete empty files
This commit is contained in:
Jack Ivanov 2018-06-28 14:04:22 +03:00
parent 9c2a86c64c
commit 09a9c4c172
6 changed files with 5 additions and 1 deletions

View file

@ -2,12 +2,16 @@
- pause:
prompt: |
Enter the IP address of your server: (or use localhost for local installation):
[localhost]
register: _algo_server
when: server is undefined
- name: Set the facts
set_fact:
cloud_instance_ip: "{{ server | default(_algo_server.user_input) }}"
cloud_instance_ip: >-
{% if server is defined %}{{ server }}
{%- elif _algo_server.user_input is defined and _algo_server.user_input != "" %}{{ _algo_server.user_input }}
{%- else %}localhost{% endif %}
- pause:
prompt: |