{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/37242","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/37242/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/37242/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/37242/events","html_url":"https://github.com/ansible/ansible/issues/37242","id":303799059,"number":37242,"title":"maven_artifact should support check mode and return URL","user":{"login":"ericcitaire","id":1712792,"avatar_url":"https://avatars2.githubusercontent.com/u/1712792?v=4","gravatar_id":"","url":"https://api.github.com/users/ericcitaire","html_url":"https://github.com/ericcitaire","followers_url":"https://api.github.com/users/ericcitaire/followers","following_url":"https://api.github.com/users/ericcitaire/following{/other_user}","gists_url":"https://api.github.com/users/ericcitaire/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcitaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcitaire/subscriptions","organizations_url":"https://api.github.com/users/ericcitaire/orgs","repos_url":"https://api.github.com/users/ericcitaire/repos","events_url":"https://api.github.com/users/ericcitaire/events{/privacy}","received_events_url":"https://api.github.com/users/ericcitaire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-09T10:45:33Z","updated_at":"2018-03-09T10:49:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release, and devel branch are affected too.\r\n-->\r\n\r\n##### ISSUE TYPE\r\nFeature Idea\r\n\r\n##### COMPONENT NAME\r\nmaven_artifact\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.4.1.0\r\n```\r\n\r\n##### CONFIGURATION\r\ndefault\r\n\r\n##### OS / ENVIRONMENT\r\nN/A\r\n\r\n##### SUMMARY\r\n`maven_artifact` should support check mode and return artifact URL. Or have a state `resolve`.\r\n\r\nThis could be useful, for example, to resolve an artifact URL and use it with `unarchive` without having to download the artifact in a temporary location (see an example in steps to reproduce).\r\n\r\nI could work on this if needed. Just not right now, maybe in a week or two. Let me know.\r\n\r\n##### STEPS TO REPRODUCE\r\n```yaml\r\n---\r\n- hosts: tomcat\r\n  tasks:\r\n    - name: Resolve Tomcat URL\r\n      maven_artifact:\r\n        group_id: org.apache.tomcat\r\n        artifact_id: tomcat\r\n        version: 9.0.5\r\n        extension: tar.gz\r\n        dest: /dev/null\r\n      check_mode: yes\r\n      register: tarball\r\n\r\n    - name: Install Tomcat\r\n      unarchive:\r\n        src: \"{{ tarball.url }}\"\r\n        dest: /opt/tomcat\r\n        remote_src: yes\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nN/A\r\n\r\n##### ACTUAL RESULTS\r\nN/A"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/371779619","html_url":"https://github.com/ansible/ansible/issues/37242#issuecomment-371779619","issue_url":"https://api.github.com/repos/ansible/ansible/issues/37242","id":371779619,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","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":"2018-03-09T10:49:33Z","updated_at":"2018-03-09T10:49:33Z","author_association":"CONTRIBUTOR","body":"cc @chrisisbeef @tumbl3w33d\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}