Order of notify handlers : <p>I have a task:</p>

<pre><code>- name: uploads docker configuration file
  template:
    src: 'docker.systemd.j2'
    dest: '/etc/systemd/system/docker.service'
  notify:
    - daemon reload
    - restart docker
</code></pre>

<p>in Ansible playbook's <a href="http://docs.ansible.com/ansible/playbooks_intro.html" rel="noreferrer">documentation</a>, there is a sentence:</p>

<blockquote>
  <p>Notify handlers are always run in the order written.</p>
</blockquote>

<p>So, it is expected, that <strong>daemon reload</strong> will be ran before <strong>restart docker</strong>, but in logs, i have:</p>

<pre>
TASK [swarm/docker : uploads docker configuration file] ************************
…
NOTIFIED HANDLER daemon reload
NOTIFIED HANDLER restart docker
…
RUNNING HANDLER [swarm/docker : restart docker] ********************************
…
RUNNING HANDLER [swarm/docker : daemon reload] *********************************
…
</pre>

<p>There are no more "NOTIFIED HANDLER" in logs. Can anyone explain, what i'm doing wrong? :(</p>
