{"action":"created","issue":{"url":"https://api.github.com/repos/apigee/henchman/issues/87","labels_url":"https://api.github.com/repos/apigee/henchman/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/apigee/henchman/issues/87/comments","events_url":"https://api.github.com/repos/apigee/henchman/issues/87/events","html_url":"https://github.com/apigee/henchman/issues/87","id":118326909,"number":87,"title":"Support \"retry\" for tasks.","user":{"login":"baskaran-md","id":496507,"avatar_url":"https://avatars.githubusercontent.com/u/496507?v=3","gravatar_id":"","url":"https://api.github.com/users/baskaran-md","html_url":"https://github.com/baskaran-md","followers_url":"https://api.github.com/users/baskaran-md/followers","following_url":"https://api.github.com/users/baskaran-md/following{/other_user}","gists_url":"https://api.github.com/users/baskaran-md/gists{/gist_id}","starred_url":"https://api.github.com/users/baskaran-md/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baskaran-md/subscriptions","organizations_url":"https://api.github.com/users/baskaran-md/orgs","repos_url":"https://api.github.com/users/baskaran-md/repos","events_url":"https://api.github.com/users/baskaran-md/events{/privacy}","received_events_url":"https://api.github.com/users/baskaran-md/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-23T06:35:45Z","updated_at":"2015-11-23T23:39:43Z","closed_at":null,"body":"Need support for retrying each task separately. This will be helpful during installation failures due to flaky yum repos.\r\n\r\n```\r\ntasks: \r\n  - name: Install Cassandra RPM \r\n    yum: name=\"{{ vars.cassandra_profile }}\" state=latest loglevel=debug\r\n    retry: 3\r\n```\r\n\r\nThis `retry` can be at the task level or at the playbook level. Task level overrides the playbook level.\r\n\r\n```\r\nname: \"Install Cassandra\"\r\nsudo: true\r\nretry: 3\r\nvars:\r\n\r\nhosts:\r\n  - central_cassandra\r\n\r\ntasks: \r\n  - name: Install Cassandra RPM \r\n    yum: name=\"{{ vars.cassandra_profile }}\" state=latest loglevel=debug\r\n\r\n  - name: Server Start\r\n    shell: cmd=\"{{ vars.edge_install_dir }}/{{ vars.cassandra_profile }}/etc/init.d/{{ vars.cassandra_profile }} restart\" loglevel=debug\r\n    retry: 0\r\n```\r\n\r\nHere, the task \"Install Cassandra RPM\" will be retried 3 times, while \"Server Start\" will not be retried."},"comment":{"url":"https://api.github.com/repos/apigee/henchman/issues/comments/159105118","html_url":"https://github.com/apigee/henchman/issues/87#issuecomment-159105118","issue_url":"https://api.github.com/repos/apigee/henchman/issues/87","id":159105118,"user":{"login":"jlin21","id":5839718,"avatar_url":"https://avatars.githubusercontent.com/u/5839718?v=3","gravatar_id":"","url":"https://api.github.com/users/jlin21","html_url":"https://github.com/jlin21","followers_url":"https://api.github.com/users/jlin21/followers","following_url":"https://api.github.com/users/jlin21/following{/other_user}","gists_url":"https://api.github.com/users/jlin21/gists{/gist_id}","starred_url":"https://api.github.com/users/jlin21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlin21/subscriptions","organizations_url":"https://api.github.com/users/jlin21/orgs","repos_url":"https://api.github.com/users/jlin21/repos","events_url":"https://api.github.com/users/jlin21/events{/privacy}","received_events_url":"https://api.github.com/users/jlin21/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T23:39:43Z","updated_at":"2015-11-23T23:39:43Z","body":"Actually tasks aren't run concurrently, only machines"}}