{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4164","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4164/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4164/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4164/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4164","id":165086085,"number":4164,"title":"unarchive module does not recognize 'creates' parameter","user":{"login":"rjma","id":6001520,"avatar_url":"https://avatars.githubusercontent.com/u/6001520?v=3","gravatar_id":"","url":"https://api.github.com/users/rjma","html_url":"https://github.com/rjma","followers_url":"https://api.github.com/users/rjma/followers","following_url":"https://api.github.com/users/rjma/following{/other_user}","gists_url":"https://api.github.com/users/rjma/gists{/gist_id}","starred_url":"https://api.github.com/users/rjma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjma/subscriptions","organizations_url":"https://api.github.com/users/rjma/orgs","repos_url":"https://api.github.com/users/rjma/repos","events_url":"https://api.github.com/users/rjma/events{/privacy}","received_events_url":"https://api.github.com/users/rjma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P2","name":"P2","color":"fad8c7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-12T13:53:43Z","updated_at":"2016-08-19T11:25:26Z","closed_at":null,"body":"Seen there is a closed bug on it #546\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\nunarchive\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.0.0\r\n  config file =\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nansible host: mac os El caption\r\ntarget host: centos/7 and ubuntu/trusty64\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nUsing unarchive to unpack files from https://.\r\nThe 'creates' does not work. Unarchive always download and unpack the zip files.\r\n\r\nI've searched the 'creates' in unarchive module's current code, it's amazing that I didn't find the usage of the 'creates' parameter. Maybe it is used in other places I don't know.\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n- name: Unpack files\r\n  unarchive: >\r\n    src={{ item }}\r\n    dest=/usr/local/bin\r\n    creates=/usr/local/bin/{{ item|hash('sha1') }}\r\n    copy=no\r\n  with_items:\r\n    - https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nThe unarchive task expect to be able to skip\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nThe task is always running.\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nchanged: [dev-app2] => (item=https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip) => {\"changed\": true, \"dest\": \"/usr/local/bin\", \"diff\": {\"prepared\": \".f..t....?? consul\\n\"}, \"extract_results\": {\"cmd\": \"/usr/bin/unzip -o \\\"/tmp/ansible_ZEQYsD/consul_0.6.4_linux_amd64.zip\\\" \\\"consul\\\" -d \\\"/usr/local/bin\\\"\", \"err\": \"\", \"out\": \"Archive:  /tmp/ansible_ZEQYsD/consul_0.6.4_linux_amd64.zip\\n  inflating: /usr/local/bin/consul   \\n\", \"rc\": 0}, \"gid\": 0, \"group\": \"root\", \"handler\": \"ZipArchive\", \"invocation\": {\"module_args\": {\"backup\": null, \"content\": null, \"copy\": false, \"creates\": \"/usr/local/bin/c0f778205fbc55c18d20fee5100a7f1a94f5415c\", \"delimiter\": null, \"dest\": \"/usr/local/bin\", \"directory_mode\": null, \"exclude\": [], \"extra_opts\": [], \"follow\": false, \"force\": null, \"group\": null, \"keep_newer\": false, \"list_files\": false, \"mode\": null, \"original_basename\": \"consul_0.6.4_linux_amd64.zip\", \"owner\": null, \"regexp\": null, \"remote_src\": null, \"selevel\": null, \"serole\": null, \"setype\": null, \"seuser\": null, \"src\": \"https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip\"}}, \"item\": \"https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip\", \"mode\": \"0755\", \"owner\": \"root\", \"size\": 4096, \"src\": \"/tmp/ansible_ZEQYsD/consul_0.6.4_linux_amd64.zip\", \"stat\": {\"exists\": false}, \"state\": \"directory\", \"uid\": 0}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/240993946","html_url":"https://github.com/ansible/ansible-modules-core/issues/4164#issuecomment-240993946","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4164","id":240993946,"user":{"login":"dagwieers","id":388198,"avatar_url":"https://avatars.githubusercontent.com/u/388198?v=3","gravatar_id":"","url":"https://api.github.com/users/dagwieers","html_url":"https://github.com/dagwieers","followers_url":"https://api.github.com/users/dagwieers/followers","following_url":"https://api.github.com/users/dagwieers/following{/other_user}","gists_url":"https://api.github.com/users/dagwieers/gists{/gist_id}","starred_url":"https://api.github.com/users/dagwieers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagwieers/subscriptions","organizations_url":"https://api.github.com/users/dagwieers/orgs","repos_url":"https://api.github.com/users/dagwieers/repos","events_url":"https://api.github.com/users/dagwieers/events{/privacy}","received_events_url":"https://api.github.com/users/dagwieers/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T11:25:26Z","updated_at":"2016-08-19T11:25:26Z","body":"needs_contributor"}}
{"actor":{"display_login":"dagwieers"}}