{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/ansible-datadog/issues/43","repository_url":"https://api.github.com/repos/DataDog/ansible-datadog","labels_url":"https://api.github.com/repos/DataDog/ansible-datadog/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/ansible-datadog/issues/43/comments","events_url":"https://api.github.com/repos/DataDog/ansible-datadog/issues/43/events","html_url":"https://github.com/DataDog/ansible-datadog/issues/43","id":204443419,"number":43,"title":"Removing entries from `datadog_checks` doesn't delete the file","user":{"login":"bgerstle","id":444217,"avatar_url":"https://avatars0.githubusercontent.com/u/444217?v=3","gravatar_id":"","url":"https://api.github.com/users/bgerstle","html_url":"https://github.com/bgerstle","followers_url":"https://api.github.com/users/bgerstle/followers","following_url":"https://api.github.com/users/bgerstle/following{/other_user}","gists_url":"https://api.github.com/users/bgerstle/gists{/gist_id}","starred_url":"https://api.github.com/users/bgerstle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgerstle/subscriptions","organizations_url":"https://api.github.com/users/bgerstle/orgs","repos_url":"https://api.github.com/users/bgerstle/repos","events_url":"https://api.github.com/users/bgerstle/events{/privacy}","received_events_url":"https://api.github.com/users/bgerstle/received_events","type":"User","site_admin":false},"labels":[{"id":105874338,"url":"https://api.github.com/repos/DataDog/ansible-datadog/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":105874341,"url":"https://api.github.com/repos/DataDog/ansible-datadog/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-31T22:30:05Z","updated_at":"2017-06-19T18:20:46Z","closed_at":null,"body":"Resulting in the datadog agent attempting to run checks which are likely fail. \r\n\r\n### Steps to reproduce\r\n1. Configure playbook w/ datadog role & an arbitrary check\r\n2. Run playbook\r\n3. Remove entry from `datadog_checks` and replace it with a different one\r\n4. Run playbook again\r\n\r\n### Expected result\r\nCheck is removed and agent is restarted, only running the new check.\r\n\r\n### Actual result\r\nOld check is still run, as the `/etc/dd-agent/checks.d/<check>.yaml` file is still present.\r\n\r\nIdeally we'd be doing immutable deploys and this wouldn't be an issue, but c'est la vie."},"comment":{"url":"https://api.github.com/repos/DataDog/ansible-datadog/issues/comments/309523770","html_url":"https://github.com/DataDog/ansible-datadog/issues/43#issuecomment-309523770","issue_url":"https://api.github.com/repos/DataDog/ansible-datadog/issues/43","id":309523770,"user":{"login":"jharley","id":511697,"avatar_url":"https://avatars3.githubusercontent.com/u/511697?v=3","gravatar_id":"","url":"https://api.github.com/users/jharley","html_url":"https://github.com/jharley","followers_url":"https://api.github.com/users/jharley/followers","following_url":"https://api.github.com/users/jharley/following{/other_user}","gists_url":"https://api.github.com/users/jharley/gists{/gist_id}","starred_url":"https://api.github.com/users/jharley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharley/subscriptions","organizations_url":"https://api.github.com/users/jharley/orgs","repos_url":"https://api.github.com/users/jharley/repos","events_url":"https://api.github.com/users/jharley/events{/privacy}","received_events_url":"https://api.github.com/users/jharley/received_events","type":"User","site_admin":false},"created_at":"2017-06-19T18:20:46Z","updated_at":"2017-06-19T18:20:46Z","body":"I'm into the idea of something like `datadog_dsiable_untracked_checks` for hosts that aren't immutable."}}
{"actor":{"display_login":"jharley"}}