Until is giving issues with ansible 2.1

Hi

Earlier we were using Ansible 2.0.1 where playbooks were running fine. Now upgraded to Ansible 2.1.1. Seeing issues with until module.

  • name: Copy the file
    get_url:
    headers: “{{ headers }}”
    url: “{{ asset_repo_url }}/{{ file_path }}”
    dest: “{{ file_dest }}”
    checksum: md5:{{ file_md5 }}
    register: get_url_result
    until: “‘OK’ in get_url_result.msg or ‘file already exists’ in get_url_result.msg”
    ignore_errors: true

In this if until command is commented, then it runs fine. Can you please let me know how it should be used in Ansible 2.1.1 version.
Many thanks

Regards
Deepa

This is the error noticed

An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py”, line 124, in run
res = self._execute()
File “/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py”, line 427, in _execute
retries = self._task.retries + 1
TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘int’
fatal: [localhost]: FAILED! => {“failed”: true, “msg”: “Unexpected failure during module execution.”, “stdout”: “”}