remove prompt of asking root password

This commit is contained in:
Larry Huang 2019-10-05 17:43:45 +08:00 committed by Jack Ivanov
parent 56f37d6348
commit f344c43e2d
2 changed files with 0 additions and 8 deletions

View file

@ -14,7 +14,6 @@
image: "{{ cloud_providers.linode.image }}"
type: "{{ cloud_providers.linode.type }}"
authorized_keys: "{{ public_key }}"
root_pass: "{{ algo_linode_password }}"
register: _linode
- set_fact:

View file

@ -42,17 +42,10 @@
register: _algo_region
when: region is undefined
- pause:
prompt: |
Enter root password of this instance.
echo: false
register: _linode_root_password
- name: Set additional facts
set_fact:
algo_linode_region: >-
{% if region is defined %}{{ region }}
{%- elif _algo_region.user_input %}{{ linode_regions[_algo_region.user_input | int -1 ]['id'] }}
{%- else %}{{ linode_regions[default_region | int - 1]['id'] }}{% endif %}
algo_linode_password: "{{ _linode_root_password.user_input }}"
public_key: "{{ lookup('file', '{{ SSH_keys.public }}') }}"