{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4490","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4490/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4490/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4490/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4490","id":172325543,"number":4490,"title":"uri: status \"changed\" never thrown","user":{"login":"oupala","id":13458743,"avatar_url":"https://avatars.githubusercontent.com/u/13458743?v=3","gravatar_id":"","url":"https://api.github.com/users/oupala","html_url":"https://github.com/oupala","followers_url":"https://api.github.com/users/oupala/followers","following_url":"https://api.github.com/users/oupala/following{/other_user}","gists_url":"https://api.github.com/users/oupala/gists{/gist_id}","starred_url":"https://api.github.com/users/oupala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oupala/subscriptions","organizations_url":"https://api.github.com/users/oupala/orgs","repos_url":"https://api.github.com/users/oupala/repos","events_url":"https://api.github.com/users/oupala/events{/privacy}","received_events_url":"https://api.github.com/users/oupala/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.1","name":"affects_2.1","color":"5319e7"},{"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/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-21T15:14:24Z","updated_at":"2016-10-05T15:17:58Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nuri\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.1.1.0\r\n```\r\n\r\n##### CONFIGURATION\r\nstandard\r\n\r\n##### OS / ENVIRONMENT\r\ndebian to raspbian\r\n\r\n##### SUMMARY\r\nstatus \"changed\" never thrown by a uri task, even if an http call is sent\r\n\r\n##### STEPS TO REPRODUCE\r\nCreate a task that generate an http call:\r\n\r\n```\r\n- name: create the database and the database schema\r\n  uri: url=https://{{ hostname }}/{{ app_path }}/install.php\r\n       creates={{ apps_install_path }}/database.sqlite3\r\n       validate_certs=no\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nThe task should be executed the first time you launch the playbook, because the file database.sqlite3 does not exist. You can see the http call in the logfile of your http server. The task status should be `ok` or `changed`, I'm not sure what would be the best solution.\r\n\r\nOn the second run of the playbook, the task shouldn't be executed, because the file database.sqlite3 does exist. You shouldn't see any http call in the logfile of your http server. The task status should be `skipped`.\r\n\r\n##### ACTUAL RESULTS\r\nThe task is executed the first time, because the file database.sqlite3 does not exist. I can see the http call in the logfile of the http server. The task status is `ok`.\r\n\r\nOn the second run of the playbook, the file database.sqlite3 does exist. I can't see any http call in the logfile of the http server, which is normal. But the task status is `ok`.\r\n\r\nThe main problem is then the status report, which is alway `ok` whenever an http call has been sent or not.\r\n\r\n```\r\nTASK [myapp : create the database and the database schema] **********\r\nok: [myserver]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/251705877","html_url":"https://github.com/ansible/ansible-modules-core/issues/4490#issuecomment-251705877","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4490","id":251705877,"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-10-05T15:17:58Z","updated_at":"2016-10-05T15:17:58Z","body":"@romeotheriault, 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"}}