change ssh_args/bastion configuration (#1883)

This commit is contained in:
Aivars Sterns
2017-10-27 14:18:39 +03:00
committed by Matthew Mosesohn
parent ba0a03a8ba
commit 84cf6fbe83
4 changed files with 11 additions and 7 deletions

View File

@@ -2,6 +2,11 @@
## Required for bootstrap-os/preinstall/download roles and setting facts
# Valid bootstrap options (required): ubuntu, coreos, centos, none
bootstrap_os: none
# Use proxycommand if bastion host is in group all
# This change obseletes editing ansible.cfg file depending on bastion existance
ansible_ssh_common_args: "{% if 'bastion' in groups['all'] %} -o ProxyCommand='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -W %h:%p {{ ansible_user }}@{{hostvars['bastion']['ansible_host']}} ' {% endif %}"
kube_api_anonymous_auth: false
# Default value, but will be set to true automatically if detected