#24882 - Fix ternary for nginx cookbook version

In order to properly include the http_realip_module, this commit fixes
the ternary results which were backwards.

[24882]