mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Split deploy steps in separate playbooks: part1 (#3451)
* Fix bootstrap_os/ubuntu idempotency * Update bastion role * move container_engine in sub-roles * requires ansible 2.5 * ubuntu18 as first CI job
This commit is contained in:
committed by
k8s-ci-robot
parent
2ab2f3a0a3
commit
c27a91f7f0
@@ -1,9 +1,8 @@
|
||||
{% if has_bastion %}
|
||||
{% set vars={'hosts': ''} %}
|
||||
{% set user='' %}
|
||||
|
||||
{% for h in groups['all'] %}
|
||||
{% if h != 'bastion' %}
|
||||
{% if h not in groups['bastion'] %}
|
||||
{% if vars.update({'hosts': vars['hosts'] + ' ' + (hostvars[h].get('ansible_ssh_host') or hostvars[h]['ansible_host'])}) %}{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -17,4 +16,3 @@ Host {{ bastion_ip }}
|
||||
|
||||
Host {{ vars['hosts'] }}
|
||||
ProxyCommand ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -W %h:%p {{ real_user }}@{{ bastion_ip }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user