title: Ansible handlers and shell module
body: <p>I have a playbook with the following task and handler section (just a snippet):</p>
  
  <pre><code>  tasks:
      - name: 'Run legacy script and power off'
        debug: msg="Preparing for reboot"
        notify: Legacy sysprep
  
    handlers:
      - name: Enable Service1
        service: name=service1 enabled=yes state=restarted
  
      - name: Legacy sysprep
        shell: /var/scripts/prep-reboot.sh
  </code></pre>
  
  <p>When I run the playbook, I see the debug message for the task that calls the <code>Legacy sysprep</code> handler, and I see the <code>Enable Service1</code> handler executed, but the <code>Legacy sysprep</code> handler isn't called (it doesn't show up in the playbook output, nor does it run on the system) and the servers are not rebooted (part of the script).</p>
  
  <p>Yes, I plan to migrate the prep-reboot.sh script to an Ansible playbook, but I was surprised that apparently the <code>shell</code> module doesn't seem to work?  Or is there an error I've overlooked?  Running with <code>-vvv</code> doesn't report anything unexpected.</p>
  
  <p>Ansible and Ansible-playbook version 2.1.1.0 running on RHEL 6.8.</p>