Skip to content

Commit

Permalink
Add default server value (localhost) for the local installation
Browse files Browse the repository at this point in the history
Delete empty files
  • Loading branch information
jackivanov committed Jun 28, 2018
1 parent 3abfa65 commit 5b4bf43
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
Empty file.
Empty file.
Empty file removed roles/cloud-ec2/handlers/main.yml
Empty file.
Empty file removed roles/cloud-gce/handlers/main.yml
Empty file.
Empty file removed roles/local/handlers/main.yml
Empty file.
6 changes: 5 additions & 1 deletion roles/local/tasks/prompts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 5b4bf43

Please sign in to comment.