Until is giving issues with ansible 2.1

27 views
Skip to first unread message

Deepa Yr

unread,
Sep 8, 2016, 7:17:29 AM9/8/16
to Ansible Project
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

Deepa Yr

unread,
Sep 8, 2016, 7:18:44 AM9/8/16
to Ansible Project
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": ""}

Reply all
Reply to author
Forward
0 new messages