Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIx error in task "Make RAID0 device" on Ansible 2.9
Starting Ansible 2.9, task "Make RAID0 device" (only active when using SSD disks on Google Cloud) can fail with this error: ``` The conditional check 'localssd_all_devices_count > 0' failed. The error was: Unexpected templating type error occurred on ({% if localssd_all_devices_count > 0 %} True {% else %} False {% endif %}): '>' not supported between instances of 'AnsibleUnsafeText' and 'int' ``` This rather ad-hoc fix coerces the "unsafe text" into an integer. There might be more issues like this with Ansible 2.9, if anything that's inputed from external processes is marked as "unsafe" and needs to somehow be washed before using in conditionals and templates. Thanks to X. Y. Han for reporting the issue and testing the fix!
- Loading branch information