Hi,
I am trying to notify a handler in a set_fact task, but it doesn't work.
Is that not implemented or I'm doing it wrong?
Thank you,
Ivan
*Here are the code snippets:*
*/tasks/main.yml*
---
...
- name: Store fact into role variable
set_fact:
important_fact: "{{ read_tmpfile_cmd.stdout }}"
when:
- "'stdout' in read_tmpfile_cmd"
- read_tmpfile_cmd.stdout != ''
notify: fact stored
*/handlers/main.yml*
---
- name: fact stored
debug:
msg: "Important fact: {{ important_fact}}"
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6d82ee9b-7caf-4ec3-b1d1-09b3076509c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.