Yea, it’s weird. Sometimes “<” works for me and sometimes it doesn’t. I couldn’t find this operator documented in the Jinja2 or Ansible docs and I don’t recall where I first learned it so I figured maybe it’s an invalid operator. I put a debug statement right before the line where I’m referencing server_num and it said it was set as I expected it to be but the statement still failed.
This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.