Merge "Host access fixes for Kubespray playbook run"
This commit is contained in:
commit
35c5e7a122
|
@ -104,6 +104,7 @@ outputs:
|
||||||
{{ hostvars.raw_get(host)['ansible_hostname'] }}:
|
{{ hostvars.raw_get(host)['ansible_hostname'] }}:
|
||||||
ansible_user: {{ hostvars.raw_get(host)['ansible_user'] | default(hostvars.raw_get(host)['ansible_ssh_user']) | default('root') }}
|
ansible_user: {{ hostvars.raw_get(host)['ansible_user'] | default(hostvars.raw_get(host)['ansible_ssh_user']) | default('root') }}
|
||||||
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
|
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
|
||||||
|
ansible_become: true
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
kube-node:
|
kube-node:
|
||||||
|
@ -113,6 +114,7 @@ outputs:
|
||||||
{{ hostvars.raw_get(host)['ansible_hostname'] }}:
|
{{ hostvars.raw_get(host)['ansible_hostname'] }}:
|
||||||
ansible_user: {{ hostvars.raw_get(host)['ansible_user'] | default(hostvars.raw_get(host)['ansible_ssh_user']) | default('root') }}
|
ansible_user: {{ hostvars.raw_get(host)['ansible_user'] | default(hostvars.raw_get(host)['ansible_ssh_user']) | default('root') }}
|
||||||
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
|
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
|
||||||
|
ansible_become: true
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
etcd:
|
etcd:
|
||||||
|
@ -145,8 +147,8 @@ outputs:
|
||||||
{%- if kubespray_command is defined -%}
|
{%- if kubespray_command is defined -%}
|
||||||
{{kubespray_command}}
|
{{kubespray_command}}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
ANSIBLE_HOST_KEY_CHECKING=False
|
||||||
ansible-playbook
|
ansible-playbook
|
||||||
-b
|
|
||||||
-i '{{playbook_dir}}/kubespray/inventory.yml'
|
-i '{{playbook_dir}}/kubespray/inventory.yml'
|
||||||
--skip-tags docker,bastion-ssh-config
|
--skip-tags docker,bastion-ssh-config
|
||||||
--extra-vars '@{{playbook_dir}}/kubespray/global_vars.yml'
|
--extra-vars '@{{playbook_dir}}/kubespray/global_vars.yml'
|
||||||
|
|
Loading…
Reference in New Issue