MODULE FAILURE - Error in unarchive module (don't unarchive if file already exists)

I’m running the following with the intention of unarchiving a zip if the target file doesn’t exist while not running it if it does exist:

  • name: Install Consul

unarchive: creates=no

copy=no

src=/tmp/{{ consul_ubuntu_pkg }}

dest=/usr/local/bin/

owner={{ consul_user }}

group={{ consul_group }} mode=0755

When I run the playbook I receive the following error:

FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Killed by signal 1.\r\n”, “module_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible_6QdEXT/ansible_module_unarchive.py", line 751, in \r\n main()\r\n File "/tmp/ansible_6QdEXT/ansible_module_unarchive.py", line 711, in main\r\n check_results = handler.is_unarchived()\r\n File "/tmp/ansible_6QdEXT/ansible_module_unarchive.py", line 397, in is_unarchived\r\n err += ‘Path %s differs in permissions (%o vs %o)\n’ % (path, self.file_args[‘mode’], stat.S_IMODE(st.st_mode))\r\nTypeError: %o format: a number is required, not str\r\n”, “msg”: “MODULE FAILURE”, “parsed”: false, “stat”: {“exists”: false}}

Thanks in advance!