handler is called in v1.8.2

Hi,

I have a task to use notify statement to call the handler, but it did not seem called. The output of tasks did not show the handler task. Should the output of tasks show the handler task if it was called?

Thanks.

  • j

Can you post some output? A handler will only be called if the task was considered changed.

I think the run_once may give me the trouble, after commented run_once it was called. To be honest, I am not quite clear why we added the run_once here as the code was referenced from some sample.

  • name: “Reload exports”
    command: exportfs -ra
    delegate_to: “{{ nfsserver }}”
    run_once: true
    sudo: true

Thanks Tom,

  • j