title: Ansible - send notification on success and failed tasks
body: <p>I've been reading and testing the block module for error handling and with the help of the following question <a href="https://stackoverflow.com/questions/35892455/ansible-execute-task-or-handler-if-any-task-failed">Ansible: execute task (or handler) if any task failed</a> really helped to understand the case.
  Now, what I'd like to accomplish is to get notified on <strong>success</strong> tasks.
  So eventually, I'll be notified on both success and failed tasks.
  How can it be accomplish without placing each task in dedicated block module, also, I've thought of using <em>include_tasks</em> and looping over the tasks but I'm not sure this is correct and also the tasks must be executed in specific order.</p>
  
  <p>So how do I write it correctly in a way that each task will have both rescue task and also notify on success?
  Also, how do I pass the task name and it's output as a message to the handler?</p>
  
  <p><strong>pseudo code for handling the failed tasks:</strong></p>
  
  <pre><code>--- # Event Handling
  - hosts:         localhost  
    connection:    local
    gather_facts:  no
  
    tasks:
      - name: Installing packages
        block:
          - command1
          - command2
          - command3
            notify: Success Handler
        rescue:
          - name: Sending alerts
            notify: Failed task
  
   handlers: 
     - name: Success Handler
       debug: 
         msg: "task {{ task_id$ }} was success"
     - name: Failed task
       debug:
         msg: "task {{ task_id$ }} failed, the error was {{ task_id: failed results }}""
  </code></pre>
  
  <p>Thanks in advance.</p>