From 728d56e74d697dd58b821274704972d8830be977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Str=C3=A1nsk=C3=BD?= <jiri.stransky@gmail.com> Date: Tue, 17 Oct 2017 11:28:45 +0200 Subject: [PATCH] Only write bastion ssh config when needed (#1810) This will allow running Kubespray when the user who runs it doesn't have write permissions to the Kubespray dir, at least when not using bastion. --- roles/bastion-ssh-config/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/bastion-ssh-config/tasks/main.yml b/roles/bastion-ssh-config/tasks/main.yml index b4cd4437e..a3cacdc3b 100644 --- a/roles/bastion-ssh-config/tasks/main.yml +++ b/roles/bastion-ssh-config/tasks/main.yml @@ -18,3 +18,4 @@ template: src: ssh-bastion.conf dest: "{{ playbook_dir }}/ssh-bastion.conf" + when: has_bastion -- GitLab