I get two warning messages when task configure_swap runs:
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found:
swap_file_exists.stat.exists and swap_enabled.rc > 0 and (not swap_enabled or (swap_enabled and
swap_file_exists.stat.size != ({{ __swapfile_size }} 0.75 1024 * 1024)))
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found:
not swap_file_exists.stat.exists or swap_file_exists.stat.size != ({{ __swapfile_size }} 0.75 1024 * 1024)
Acknowledged.
We will remove the Jinja2 templating delimiter ({{ }} from the conditional statement. For now, the warning can be ignored. An internal WI has been created.
I get two warning messages when task
configure_swap
runs:https://github.com/HCL-TECH-SOFTWARE/connections-automation/blob/4e0466a74b400835172d5a83c70ffcbac7e62c4f/roles/third_party/linux/swap-setup/tasks/configure_swap.yml#L18-L22
https://github.com/HCL-TECH-SOFTWARE/connections-automation/blob/4e0466a74b400835172d5a83c70ffcbac7e62c4f/roles/third_party/linux/swap-setup/tasks/configure_swap.yml#L34-L36