{"action":"closed","issue":{"url":"https://api.github.com/repos/Wtower/ansible-django-deploy/issues/3","repository_url":"https://api.github.com/repos/Wtower/ansible-django-deploy","labels_url":"https://api.github.com/repos/Wtower/ansible-django-deploy/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Wtower/ansible-django-deploy/issues/3/comments","events_url":"https://api.github.com/repos/Wtower/ansible-django-deploy/issues/3/events","html_url":"https://github.com/Wtower/ansible-django-deploy/issues/3","id":154002438,"number":3,"title":"Add a check that dev_path is valid","user":{"login":"Wtower","id":10957886,"avatar_url":"https://avatars.githubusercontent.com/u/10957886?v=3","gravatar_id":"","url":"https://api.github.com/users/Wtower","html_url":"https://github.com/Wtower","followers_url":"https://api.github.com/users/Wtower/followers","following_url":"https://api.github.com/users/Wtower/following{/other_user}","gists_url":"https://api.github.com/users/Wtower/gists{/gist_id}","starred_url":"https://api.github.com/users/Wtower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wtower/subscriptions","organizations_url":"https://api.github.com/users/Wtower/orgs","repos_url":"https://api.github.com/users/Wtower/repos","events_url":"https://api.github.com/users/Wtower/events{/privacy}","received_events_url":"https://api.github.com/users/Wtower/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Wtower/ansible-django-deploy/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"Wtower","id":10957886,"avatar_url":"https://avatars.githubusercontent.com/u/10957886?v=3","gravatar_id":"","url":"https://api.github.com/users/Wtower","html_url":"https://github.com/Wtower","followers_url":"https://api.github.com/users/Wtower/followers","following_url":"https://api.github.com/users/Wtower/following{/other_user}","gists_url":"https://api.github.com/users/Wtower/gists{/gist_id}","starred_url":"https://api.github.com/users/Wtower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wtower/subscriptions","organizations_url":"https://api.github.com/users/Wtower/orgs","repos_url":"https://api.github.com/users/Wtower/repos","events_url":"https://api.github.com/users/Wtower/events{/privacy}","received_events_url":"https://api.github.com/users/Wtower/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Wtower/ansible-django-deploy/milestones/1","html_url":"https://github.com/Wtower/ansible-django-deploy/milestones/v0.1.1","labels_url":"https://api.github.com/repos/Wtower/ansible-django-deploy/milestones/1/labels","id":1806899,"number":1,"title":"v0.1.1","description":"","creator":{"login":"Wtower","id":10957886,"avatar_url":"https://avatars.githubusercontent.com/u/10957886?v=3","gravatar_id":"","url":"https://api.github.com/users/Wtower","html_url":"https://github.com/Wtower","followers_url":"https://api.github.com/users/Wtower/followers","following_url":"https://api.github.com/users/Wtower/following{/other_user}","gists_url":"https://api.github.com/users/Wtower/gists{/gist_id}","starred_url":"https://api.github.com/users/Wtower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wtower/subscriptions","organizations_url":"https://api.github.com/users/Wtower/orgs","repos_url":"https://api.github.com/users/Wtower/repos","events_url":"https://api.github.com/users/Wtower/events{/privacy}","received_events_url":"https://api.github.com/users/Wtower/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2016-06-03T10:11:00Z","updated_at":"2016-06-03T10:20:23Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-05-10T13:10:49Z","updated_at":"2016-06-03T10:20:23Z","closed_at":"2016-06-03T10:20:23Z","body":"Because of the fact that a project may be deployed by any dev machine, and the `dev_path` may differ and eventually lead to a mess up, add a check that it is a valid path on local.\r\n\r\nUse:\r\n\r\n    - name: ...\r\n      local_action: stat path={{ dev_path }}/index.wsgi\r\n      register: X\r\n      fail_when: X.stat.exists == False\r\n\r\nRelevant links:\r\n- http://docs.ansible.com/ansible/playbooks_delegation.html\r\n- https://raymii.org/s/tutorials/Ansible_-_Only_if_a_file_exists_or_does_not_exist.html\r\n- http://stackoverflow.com/questions/28855236/copy-local-file-if-exists-using-ansible"}}
{"actor":{"display_login":"Wtower"}}