{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3996","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3996/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3996/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3996/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3996","id":161371432,"number":3996,"title":"unarchive: fails when 'copy' parameter is passed using a list","user":{"login":"drybjed","id":1043958,"avatar_url":"https://avatars.githubusercontent.com/u/1043958?v=3","gravatar_id":"","url":"https://api.github.com/users/drybjed","html_url":"https://github.com/drybjed","followers_url":"https://api.github.com/users/drybjed/followers","following_url":"https://api.github.com/users/drybjed/following{/other_user}","gists_url":"https://api.github.com/users/drybjed/gists{/gist_id}","starred_url":"https://api.github.com/users/drybjed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drybjed/subscriptions","organizations_url":"https://api.github.com/users/drybjed/orgs","repos_url":"https://api.github.com/users/drybjed/repos","events_url":"https://api.github.com/users/drybjed/events{/privacy}","received_events_url":"https://api.github.com/users/drybjed/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":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/1","html_url":"https://github.com/ansible/ansible-modules-core/milestones/stable-2.1","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/1/labels","id":996115,"number":1,"title":"stable-2.1","description":"","creator":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":121,"state":"open","created_at":"2015-02-26T01:01:13Z","updated_at":"2016-09-02T21:18:20Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-21T07:58:08Z","updated_at":"2016-09-07T04:33:08Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\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\n\r\n`unarchive` Ansible module\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n\r\ngit rev-parse HEAD: b7f9037b5bd31ca54a883b05dc5957551a378032\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\nStandard configuration\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\n\r\nDebian\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n\r\nThe `unarchive` module fails when its configuration is passed to the module through a list and `copy` parameter is used in one of the elements, with or without an `omit` default option.\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---\r\n\r\n- hosts: all\r\n\r\n  vars:\r\n    unarchive_task_list:\r\n      - src: '/tmp/tarball.tar'\r\n        dest: '/tmp/test-dir'\r\n        copy: False\r\n\r\n  tasks:\r\n\r\n    - name: Create a tarball\r\n      command: tar cf /tmp/tarball.tar bin share lib\r\n      args:\r\n        chdir: '/usr/local'\r\n        creates: '/tmp/tarball.tar'\r\n        warn: False\r\n\r\n    - name: Create the test directory\r\n      file:\r\n        path: '/tmp/test-dir'\r\n        state: 'directory'\r\n\r\n    - name: Unpack the tarball\r\n      unarchive:\r\n        src: '{{ item.src }}'\r\n        dest: '{{ item.dest }}'\r\n        copy: '{{ item.copy | d(omit) }}'\r\n      with_flattened:\r\n        - '{{ unarchive_task_list }}'\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\n\r\nThe module untars the specified file.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nTASK [setup] *******************************************************************\r\nok: [host]\r\n\r\nTASK [Create a tarball] ********************************************************\r\nok: [host]\r\n\r\nTASK [Create the test directory] ***********************************************\r\nok: [host]\r\n\r\nTASK [Unpack the tarball] ******************************************************\r\nfailed: [host] (item={u'dest': u'/tmp/test-dir', u'src': u'/tmp/tarball.tar', u'copy': False}) => {\"failed\": true, \"item\": {\"copy\": false, \"dest\": \"/tmp/test-dir\", \"src\": \"/tmp/tarball.tar\"}, \"msg\": \"Boolean <built-in method copy of dict object at 0x7fe901acd5c8> not in either boolean list\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/245172298","html_url":"https://github.com/ansible/ansible-modules-core/issues/3996#issuecomment-245172298","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3996","id":245172298,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T04:33:08Z","updated_at":"2016-09-07T04:33:08Z","body":"@dagwieers, @pileofrogs, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}