From 41e4e09606454cd3ce705dbf7d09ac3d25b30155 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 20 Oct 2017 10:02:39 -0400 Subject: [PATCH] Clean up some missing values --- kube-install.yml | 2 +- roles/vm-spinup/templates/vms.local.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kube-install.yml b/kube-install.yml index a5f3fb5..6fe92d9 100644 --- a/kube-install.yml +++ b/kube-install.yml @@ -53,4 +53,4 @@ become_user: root tasks: [] roles: - - { role: kubectl-proxy-systemd } \ No newline at end of file + - { role: kubectl-proxy-systemd } diff --git a/roles/vm-spinup/templates/vms.local.j2 b/roles/vm-spinup/templates/vms.local.j2 index fa030d2..1d42e6f 100644 --- a/roles/vm-spinup/templates/vms.local.j2 +++ b/roles/vm-spinup/templates/vms.local.j2 @@ -19,7 +19,7 @@ kube-node-3 [all_vms:vars] ansible_user=centos {% if ssh_proxy_enabled %} -ansible_ssh_common_args='-o ProxyCommand="ssh {% if ssh_proxy_port %}-p {{ ssh_proxy_port }}{% endif %} -W %h:%p {{ ssh_proxy_user }}@{{ ssh_proxy_host }}"' +ansible_ssh_common_args='-o ProxyCommand="ssh{% if ssh_proxy_port is defined %}-p {{ ssh_proxy_port }}{% endif %} -W %h:%p {{ ssh_proxy_user }}@{{ ssh_proxy_host }}"' {% endif %} {% if vm_ssh_key_path is defined %} ansible_ssh_private_key_file={{ vm_ssh_key_path }}