title: How to reference only a handler from a role in ansible?
body: <p>I'm using ansible to provision and deploy to a machine. In my provision file I have the role to install pm2.</p>
  
  <p><strong>provision.yml:</strong></p>
  
  <pre><code>roles:
    - franklinkim.pm2
  
  include:
    - deploy.yml
  </code></pre>
  
  <p>But in the deploy file I update stuff and need to trigger a restart</p>
  
  <p><strong>deploy.yml:</strong></p>
  
  <pre><code>tasks:
  - name: Pull sources from the repository.
    git: repo=https://mygit.com/someproj.net.git dest={{ project_root }}/someproj version={{ branch }} 
    notify:
      - restart pm2
  </code></pre>
  
  <p>Of course if I only run the deploy.yml file then it will fail because it has no reference to <code>pm2</code>. I can add the pm2 role in there but that makes no sense, the provision.yml stuff runs as root but the deploy.yml stuff runs as a user.</p>
  
  <p>What's the normal way to handle this? Basically I need to trigger a handler from one playbook that's defined in a role but not execute tasks from that role.</p>