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
> <module>\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!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/50af7fba-a7a4-4b01-b786-1926997fad46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.