When the set_fact module is used with the ternary filter the evaluated
condition must be surrounded in parentheses, otherwise the fact will
always be set to False.
While other uses of ternary within this role don't seem to be effected,
update them also for consistency and readability.
Change-Id: I4809ded8b6fe738f8fa700434739ee0b1f6d3af1