--- # Shared by validate.yml and reboot.yml: the tasks_from: reboot entry point does not run validate.yml. A negative or non-integer value # must stop the run before a host reboots, not be coerced into a different wait. `| string` also refuses true, 2.5 and a list. - name: Validate the reboot throttle and post-reboot delay ansible.builtin.assert: that: - system_baseline_reboot_throttle | string is match('^[0-9]+\Z') - system_baseline_reboot_post_delay | string is match('^[0-9]+\Z') fail_msg: >- system_baseline_reboot_throttle ('{{ system_baseline_reboot_throttle }}') and system_baseline_reboot_post_delay ('{{ system_baseline_reboot_post_delay }}') must each be a whole number, 0 or more. quiet: true tags: always