HCL-TECH-SOFTWARE / connections-automation

Deployment and upgrade automation scripts for HCL Connections 7.0 based on Ansible
Apache License 2.0
17 stars 31 forks source link

Warning messages with task configure_swap #287

Open marde16 opened 1 year ago

marde16 commented 1 year ago

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)))

https://github.com/HCL-TECH-SOFTWARE/connections-automation/blob/4e0466a74b400835172d5a83c70ffcbac7e62c4f/roles/third_party/linux/swap-setup/tasks/configure_swap.yml#L18-L22

[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)

https://github.com/HCL-TECH-SOFTWARE/connections-automation/blob/4e0466a74b400835172d5a83c70ffcbac7e62c4f/roles/third_party/linux/swap-setup/tasks/configure_swap.yml#L34-L36

nitinjagjivan commented 1 year ago

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.