HCL-TECH-SOFTWARE / connections-automation

Deployment and upgrade automation scripts for HCL Connections 7.0 based on Ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning messages with task configure_swap

marde16 opened this issue · comments

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

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

when: >
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.