handler is called in v1.8.2

24 views
Skip to first unread message

hce h

unread,
Jan 7, 2015, 10:56:53 PM1/7/15
to ansible...@googlegroups.com
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

Tom Bamford

unread,
Jan 8, 2015, 3:51:22 AM1/8/15
to ansible...@googlegroups.com
Can you post some output? A handler will only be called if the task was considered changed.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a1177d22-7953-44ab-b120-2da40eb36bbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hce h

unread,
Jan 8, 2015, 5:32:03 PM1/8/15
to ansible...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages