From e1f93a204e631eb1e139b77b630c99085fd6234a Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 7 Dec 2017 01:31:17 +0000 Subject: [PATCH] Need to also check for the variable --- tasks/happy_birthday.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/happy_birthday.yml b/tasks/happy_birthday.yml index 362c90464e..95d78b1ee2 100644 --- a/tasks/happy_birthday.yml +++ b/tasks/happy_birthday.yml @@ -2,6 +2,8 @@ local_action: command ssh-keyscan -t rsa {{ inventory_hostname }} ignore_errors: True register: hostkey + when: birthday is defined - name: Include basessh include_role: name=basessh + when: birthday is defined