From d46afa41b0d26187557aee8d7e3ca99c8306a241 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Oct 20 2018 10:47:23 +0000 Subject: Use default when required. --- diff --git a/tasks/main.yml b/tasks/main.yml index aee2cab..54108a4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,7 +1,7 @@ --- # tasks file for reboot - name: reboot the machine - shell: "(sleep {{ reboot_delay }} && {{ reboot_command[ansible_distribution] }} &)" + shell: "(sleep {{ reboot_delay }} && {{ reboot_command[ansible_distribution] | default(reboot_command['default']) }} &)" async: 1 poll: 0 ignore_errors: yes